0
Write a c program for calculating of average of three no.
I used a=1b=2&c=3 so there average is 2 but it shows 4268.000 so what I do on c programming
4 odpowiedzi
+ 5
Could you provide your code?
0
Yess
0
#include<stdio.h>
#include<conio.h>
Void main()
{
float d;
int a,b&c ;
printf("enter the value of a,b,c");
scanf("%d%d%d",&a,&b,&c);
d=(a+b+c)/3;
printf("%f",d);
getch();
}
0
Where I used the value of a=1 b=2 c=3