C Program To Read Two Numbers And Print The Sum Of Given Two Numbers

CWC
0 Min Read

Here is simple C Program To Read Two Numbers And Print The Sum Of Given Two Numbers

# include <stdio.h>
# include <conio.h>
main()
{
int a,b, sum;
clrscr ();
printf (“ENTER VALUE FOR A ;“);
scanf (“%d”,&a);
printf(“ENTER VALUE FOR B;”);
scanf(“%d”,&b);
sum=a+b;
printf(“Sum Of Given Two
Numbers are %d”, sum);
getch();
}
Share This Article
Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

English
Exit mobile version