//Program to find out the average of three numbers
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c;
float d;
clrscr();
printf("Enter Three numbers ");
scanf("%d%d%d",&a,&b,&c);
d=(a+b+c)/3;
printf("Average is = %f",d);
getch();
return 0;
}
To Run this Program Copy it in text editor and save as .c
Then double click on it and then it will get opened in your compiler.
Click on run.
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c;
float d;
clrscr();
printf("Enter Three numbers ");
scanf("%d%d%d",&a,&b,&c);
d=(a+b+c)/3;
printf("Average is = %f",d);
getch();
return 0;
}
To Run this Program Copy it in text editor and save as .c
Then double click on it and then it will get opened in your compiler.
Click on run.