for adding of two element in c

 //To adding two elements a and b

#include<stdio.h>
int main() {
int a;
int b;
int sum;
printf("enter first number: ");
scanf("%d\n", &a);
printf("enter second number: ");
scanf("%d\n", &b);
sum = a + b;
printf("the sum of two number is: %d\n", sum);
return 0;
}

Comments

Popular posts from this blog

Use of function in mathematics

My resume using HTML and CSS