Use minus operator to get the difference between two integers - C Data Type

C examples for Data Type:int

Description

Use minus operator to get the difference between two integers

Demo Code

#include <stdio.h>

int main (void)
{
    int value1, value2, difference;

    value1 = 87;/*w  ww .j  a va  2  s  . com*/
    value2 = 15;
    difference = value1 - value2;

    printf ("%i minus %i is %i\n", value1, value2, difference);

    return 0;
}

Result


Related Tutorials