Back To C Basic Index
//program to input three numbers and find sum of three numbers #include
#include
void main() { int a,b,c; int sum; clrscr(); printf("enter value for a"); scanf("%d",&a); printf("enter value for b"); scanf("%d",&b); printf("enter value for c"); scanf("%d",&c); sum=a+b+c; printf("sum of a b and c is %d",sum); getch(); }