/*
This is the fourth lab of Lab EE107
The purpose of this lab is to Evaluate and
The purpose is to create the code and free of syntax and grammatical errors
Author: Ekwegbalum Unachukwu
Star ID:do2170dt
Date: Feb 6, 2024.
    */

#include <stdio.h>

int main() {
    printf("2 *(-5) = %i\n",2 * -5);//prints the result of the integer.
    printf("8 - 3 * 5 = %d\n",8 - 3 * 5);//prints the result of the decimal of the number.
    printf("9/2 = %i\n",9/2 );//prints the result of the integers.
    printf("9/2.0 = %.3f\n",9/2.0 );//prints the result from at least one float(three decimals).
    printf("3/6 = %i\n",3/6  );//prints the result of only integers.
    printf("3.0/6 = %.2f\n",3.0/6  );//prints the result from at least one float(two decimals).
    printf("3/5 * 5 = %i\n",3/5 * 5 );//prints the result from at only integers.
    printf("3.0/5 * 5 = %.4f\n",3.0/5*5  );//prints the result from at least one float(four decimals)
    printf("7/2 + 3.0 + 1.0 = %f\n",7/2 + 3.0 + 1.0 );//prints the result from at least one float
    printf("5 %% 2 = %d\n",5%2 );//prints modulus prints for only integers
    printf("4 * 5/2 + 5%%2  = %i\n",4 * 5/2 + 5%2  );//prints modulus prints for only integers
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: