Thursday, 12 April 2012

Addition in C 10/04/2012

Here is our first mathematical solution by using C. just adding two numbers
#include <stdio.h>
main()
{
    int i=6,j=9;
    int result;
    result = i+j;
    printf("The addition of 6 and 9 is %d\n", result); //this one will print the given data and text
    system("PAUSE");
    return 0;
}

the  screen is given below

No comments:

Post a Comment