Ads Here

Sunday, 26 November 2017

Program to check average of 3 no.

/*program to find the average of three no*/
#include<stdio.h>
#include<conio.h>
void main()
{
int num1,num2,num3,average;
clrscr();
printf("enter any three number");
scanf("%d%d%d",&num1,&num2,&num3);
average=num1+num2+num3;
printf("the average is %d",average");
getch();
}

output:

No comments:

Post a Comment