C Language programming
Tuesday, 19 March 2013
A Simple Program for how to Add Two Numbers
#include<stdio.h>
void main()
{
int a, b,sum=0;
printf("Enter a number=");
scanf("%d",&a);
printf("Enter a number=");
scanf("%d",&b);
sum=a+b;
printf("Sum of digits are=%d",sum);
}
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment