addition in c

[ad_1]

addition in c
/*Program for adding two numbers*/
#include 
int main(){
	int a, b, sum; //declare the variables that will be used, a will store the first number, b second number and sum, the sum.
    printf("Enter the first number: \n"); //Prompts user to enter the first number.
    scanf("
    printf("Enter the second number: \n");
    scanf("
    sum = a + b; //Formular to add the two numbers.
    printf("Sum is 
}
addition.c
#include
#include
{
int a,b;
a=2;
b=10;
a=a+b;
printf("
getch();
}
addition of two numbers in c
//test

[ad_2]

Content Protection by DMCA.com