/*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