c programming for beginners
ads
Sunday, 28 August 2016
C PROGRAM TO ADD NUMBERS
#include<stdio.h>
#include<conio.h>
void main()
{
int a, b, c;
printf("Enter two numbers to add
\n
");
scanf("%d%d",&a,&b);
c = a + b;
printf("Sum of entered numbers = %d
\n
",c);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment