C-Programs
Tuesday, 29 August 2017
C Program for Sum of Two Numbers
/* Sum of Two Numbers */
#include<stdio.h>
int main()
{
int a,b,sum;
printf("Type your frist value to add : ");
scanf("%d",&a);
printf("Type your second value to add : ");
scanf("%d",&b);
sum =a+b;
printf("Total of your value = %d",sum);
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment