Do simple math on int type - C Data Type

C examples for Data Type:int

Description

Do simple math on int type

Demo Code

#include <stdio.h>

int main (void)
{
    int sum;/*from   w w  w.  ja v  a  2 s .  c o m*/

    // compute result
    sum = 25 + 37 - 19;

    // display result
    printf("The answer is %i\n", sum);

    return 0;
}

Result


Related Tutorials