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

#include<stdio.h>
#include<conio.h>
main()

int p,q, sum;
clrscr ();
printf ("ENTER VALUE FOR P :");
scanf ("%d",&p);
printf("ENTER VALUE FOR Q:");
scanf("%d",&q);
sum=p+q;
printf("Sum Of Given Two Numbers are %d", sum); 
getch();
}


Output:

Run-1





Run-2



1 comment:

100 C Programs with Code and Output

Program 1: C Program To Read Two Numbers And Print The Sum Of Given Two Numbers. Program 2: C Program To Read Three Numbers And Prin...