Monday, 8 July 2013

Program to print and calculate sum of 5 numbers

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,d,e,Sum;
clrscr();
printf("Enter the five numbers");
scanf("%d%d%d%d%d",&a,&b);
Sum=a+b+c+d+e;
printf("%d",Sum);
getch();

}

No comments:

Post a Comment