/*Average of Three no*/ #include void main() { float a,b,c,avg; printf("\nEnter a three no:"); scanf("%f%f%f",&a,&b,&c); avg=(a+b+c)/3; printf("\nAverage of three no=%f\n",avg);
/*To calculate Average of three numbers ,20-7-16*/ #include void main() { int a,b,c; float avg; printf("\n\tEnter the first number"); scanf("%d",&a); printf("\n\tEnter the second number"); scanf("%d",&b); printf("\n\tEnter the third number"); scanf("%d",&c); avg=a+b+c/3; printf("\n\tavg=%f",avg); }
It's average time!!! //average of three numbers #include void main() { int a,b,c; float avg; printf("\n\tEnter the three numbers whose average has to be calculated:"); scanf("%d%d%d",&a,&b,&c); avg=(a+b+c)/3; printf("\n\tAVERAGE=%f",avg); }
//average of three numbers #include void main() { int a,b,c; float avg; printf("\n\tEnter the three numbers whose average has to be calculated:"); scanf("%d%d%d",&a,&b,&c); avg=(a+b+c)/3; printf("\n\tAVERAGE=%f",avg); }
/*Average of Three no*/ #include void main() { float a,b,c,avg; printf("\nEnter a three no:"); scanf("%f%f%f",&a,&b,&c); avg=(a+b+c)/3; printf("\nAverage of three no=%f\n",avg);
#include void main() { int n,a,b,c; printf("\nEnter a nos to perform following operation:"); scanf("%d\t%d",&a,&b); printf("\nEnter your choice:"); printf("\n1.add\t2.sub\t3.mul\t4.div\n"); scanf("%d",&n); switch(n) { case 1: { c=a+b; printf("\nAdd=%d",c); break; }
case 2: { c=a-b; printf("\nsub=%d",c); break; }
case 3: { c=a*b; printf("\nmul=%d",c); break; } case 4: { c=a/b; printf("\ndiv=%d",c); break; } default:
# include void main() { float a,b,c,avg; printf("\n\t enter the three no."); scanf("%f%f%f",&a,&b,&c); avg=a+b+c/3; printf("\n\t average of no=%f",avg); }
/*program to calculate avrage of three numbers*/ #include void main() { int a,b; float avg; printf("\n Enter two nos a & b:); scanf("%d%d",&a,&b); avg=a+b/2; printf("\nAverage of Nos:%f",avg); }
/* Avarage of three numbers */ #include void main() { int a,b,c,total; float Avg; printf("\n\t Enter the three numbers"); scanf("%d%d%d",&a,&b,&c); total=a+b+c; Avg=total/3; printf("\n\t Avarage of three numbers=%f",Avg); }
#include void main() { float avg,a,b,c; printf("\n\t Enter the three values"); scanf("%f%f%f",&a,&b,&c); avg=((a+b+c)/3); printf("\n\tAverage=%f",avg); }
#include void main() { int a,b,c; float avg; printf("\n\t enter the three numbers"); scanf("%d%d%d",&a,&b,&c); avg=(a+b+c)/3; printf("\n\t average of three number==%f",avg); }
/*Average of three number*/ #include void main() { int a,b,c,avg; printf("\n enter three numbers"); scanf("%d%d%d",&a,&b,&c); avg=(a+b+c)/3; printf("\n average of three number=%d",avg); }
/*To calculate Average of three numbers */ #include void main() { int a,b,c; float avg; printf("\n\tEnter the first number"); scanf("%d",&a); printf("\n\tEnter the second number"); scanf("%d",&b); printf("\n\tEnter the third number"); scanf("%d",&c); avg=a+b+c/3; printf("\n\tavg=%f",avg); }
#include
ReplyDeletevoid main()
{
float a,b,c,Avg;
printf("\n\tEnter three no");
scanf("%f%f%f",&a,&b,&c);
Avg=a+b+c/3;
printf("\n\tAverage of no=%f",Avg);
}
/*Average of Three no*/
ReplyDelete#include
void main()
{
float a,b,c,avg;
printf("\nEnter a three no:");
scanf("%f%f%f",&a,&b,&c);
avg=(a+b+c)/3;
printf("\nAverage of three no=%f\n",avg);
}
#include
ReplyDeletevoid main()
{
int a,b,c;
float avg;
printf("\n\t enter 3 numbers=");
scanf("%d%d%d",&a,&b,&c);
avg=(a+b+c)/3;
printf("avg of 3 number==%f\n",avg);
}
#include
ReplyDeletevoid main()
{
int a,b,c;
float avg;
printf("\n\t enter 3 numbers=");
scanf("%d%d%d",&a,&b,&c);
avg=(a+b+c)/3;
printf("avg of 3 number==%f\n",avg);
}
/*To calculate Average of three numbers ,20-7-16*/
ReplyDelete#include
void main()
{
int a,b,c;
float avg;
printf("\n\tEnter the first number");
scanf("%d",&a);
printf("\n\tEnter the second number");
scanf("%d",&b);
printf("\n\tEnter the third number");
scanf("%d",&c);
avg=a+b+c/3;
printf("\n\tavg=%f",avg);
}
It's average time!!!
ReplyDelete//average of three numbers
#include
void main()
{
int a,b,c;
float avg;
printf("\n\tEnter the three numbers whose average has to be calculated:");
scanf("%d%d%d",&a,&b,&c);
avg=(a+b+c)/3;
printf("\n\tAVERAGE=%f",avg);
}
//average of three numbers
ReplyDelete#include
void main()
{
int a,b,c;
float avg;
printf("\n\tEnter the three numbers whose average has to be calculated:");
scanf("%d%d%d",&a,&b,&c);
avg=(a+b+c)/3;
printf("\n\tAVERAGE=%f",avg);
}
#include
ReplyDeletevoid main()
{
float num1,num2,num3,avg;
printf("\n enter 3 numbers=");
scanf("%f%f%f",&num1,&num2,&num3);
avg=(num1+num2+num3)/3;
printf("\n average=%f",avg);
}
/*Average of Three no*/
ReplyDelete#include
void main()
{
float a,b,c,avg;
printf("\nEnter a three no:");
scanf("%f%f%f",&a,&b,&c);
avg=(a+b+c)/3;
printf("\nAverage of three no=%f\n",avg);
}
#include
ReplyDeletevoid main()
{
int a,b,c;
float avg;
printf("\n enter the 3 number");
scanf("%d%d%d",&a,&b,&c);
avg=a+b+c/3;
printf("\navg=%f",avg);
}
#include
ReplyDeletevoid main()
{
int n,a,b,c;
printf("\nEnter a nos to perform following operation:");
scanf("%d\t%d",&a,&b);
printf("\nEnter your choice:");
printf("\n1.add\t2.sub\t3.mul\t4.div\n");
scanf("%d",&n);
switch(n)
{
case 1:
{
c=a+b;
printf("\nAdd=%d",c);
break;
}
case 2:
{
c=a-b;
printf("\nsub=%d",c);
break;
}
case 3:
{
c=a*b;
printf("\nmul=%d",c);
break;
}
case 4:
{
c=a/b;
printf("\ndiv=%d",c);
break;
}
default:
{
printf("\ninvalid choice");
break;
}
}
}
#include
ReplyDeletevoid main()
{
int a,b,c;
float avg;
printf("\n\t enter 3 no. ");
scanf("%d%d%d",&a,&b,&c);
avg=(a+b+c)/3;
printf("average=%f",avg);
}
#include
ReplyDeletevoid main()
{
float a,b,c,Avg;
printf("\n\tEnter three no");
scanf("%f%f%f",&a,&b,&c);
Avg=(a+b+c)/3;
printf("\n\tAverage of no=%f",Avg);
}
#include
ReplyDeletevoid main()
{
float a,b,c;
float avg;
printf(" \n Enter 3 numbers= ");
scanf("%f%f%f",&a,&b,&c);
avg=(a+b+c)/3;
printf(" Average of 3 numbers=%f \n",avg);
}
# include
ReplyDeletevoid main()
{
float a,b,c,avg;
printf("\n\t enter the three no.");
scanf("%f%f%f",&a,&b,&c);
avg=a+b+c/3;
printf("\n\t average of no=%f",avg);
}
#include
ReplyDeletevoid main()
{
float a,b,c,avg;
printf("\n\t enter three numbers");
scanf("%f %f %f",&a,&b,&c);
avg=(a+b+c)/3;
printf("\n\t avg=%f",avg);
}
#include
ReplyDeletevoid main()
{
int num1,num2,num3,avrage;
printf("\nEnter three number\n");
scanf("%d%d%d",&num1,&num2,&num3);
avrage=(num1+num2+num3)/3;
printf("Avrage=%d\n",avrage);
}
This comment has been removed by the author.
ReplyDelete/*program to calculate avrage of three numbers*/
ReplyDelete#include
void main()
{
int a,b;
float avg;
printf("\n Enter two nos a & b:);
scanf("%d%d",&a,&b);
avg=a+b/2;
printf("\nAverage of Nos:%f",avg);
}
#include
ReplyDeletevoid main()
{
float a,s,d,avg;
printf("\n\t Enter first number=");
scanf("%f",&a);
printf("\n\t Enter second number=");
scanf("%f",&s);
printf("\n\t Enter third number=");
scanf("%f",&d);
avg=a+s+d/3;
printf("\n\t Average of three numbers = %f ",avg);
}
#include
ReplyDeletevoid main()
{
int a=20,b=30,c=40,d;
d=a+b+c/3;
printf("\n\t Average=%d\n",d);
}
#include
ReplyDelete#define pi=3.14.h
void main()
{
float area,a;
printf("enter the radius of circal=");
scanf("%f",&a);
area=pi*r*r;
printf("your circal radius= %f",area);
}
/* Avarage of three numbers */
ReplyDelete#include
void main()
{
int a,b,c,total;
float Avg;
printf("\n\t Enter the three numbers");
scanf("%d%d%d",&a,&b,&c);
total=a+b+c;
Avg=total/3;
printf("\n\t Avarage of three numbers=%f",Avg);
}
#include
ReplyDeletevoid main()
{
float avg,a,b,c;
printf("\n\t Enter the three values");
scanf("%f%f%f",&a,&b,&c);
avg=((a+b+c)/3);
printf("\n\tAverage=%f",avg);
}
/*av of 3 num*/
ReplyDelete#include
void main()
{
int a,b,c;
float av;
printf("\n\t enter num");
scanf("%d%d%d",&a,&b,&c);
av=(a+b+c)/3;
printf("av=%f",av);
}
/*av of 3 num*/
#include
void main()
{
int a,b,c;
float av;
printf("\n\t enter num");
scanf("%d%d%d",&a,&b,&c);
av=(a+b+c)/3;
printf("av=%f",av);
}
#include
ReplyDeletevoid main()
{
int a,b,c;
float avg;
printf("\n\t enter the three numbers");
scanf("%d%d%d",&a,&b,&c);
avg=(a+b+c)/3;
printf("\n\t average of three number==%f",avg);
}
/*Average of three number*/
ReplyDelete#include
void main()
{
int a,b,c,avg;
printf("\n enter three numbers");
scanf("%d%d%d",&a,&b,&c);
avg=(a+b+c)/3;
printf("\n average of three number=%d",avg);
}
#include
ReplyDeletevoid main()
{
int a,b,c,avg;
printf("enter three no");
scanf("%d%d%d",&a,&b,&c);
avg=a+b+c/3;
printf("average of no=%d",avg);
}t
#include
ReplyDeletevoid main()
{
float x,y,z,Avg;
printf("\n\tEnter three no");
scanf("%f%f%f",&x,&y,&z);
Avg=x+y+z/3;
printf("\n\tAverage of no=%f",Avg);
}
#include
ReplyDeletevoid main()
{
float a,b,c,Avg;
printf("\n\tEnter three no");
scanf("%f%f%f",&a,&b,&c);
Avg=a+b+c/3;
printf("\n\tAverage of no=%f",Avg);
}
#include
ReplyDeletevoid main()
{
float a,b,c,Avg;
printf("\n\tEnter three no");
scanf("%f%f%f",&a,&b,&c);
Avg=(a+b+c)/3;
printf("\n\tAverage of no=%f",Avg);
}
/*To calculate Average of three numbers */
ReplyDelete#include
void main()
{
int a,b,c;
float avg;
printf("\n\tEnter the first number");
scanf("%d",&a);
printf("\n\tEnter the second number");
scanf("%d",&b);
printf("\n\tEnter the third number");
scanf("%d",&c);
avg=a+b+c/3;
printf("\n\tavg=%f",avg);
}