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

16th Dec 2020, 6:44 AM
Yashi Sahu
4 Respuestas
+ 5
Could you provide your code?
16th Dec 2020, 6:47 AM
你知道規則,我也是
你知道規則,我也是 - avatar
0
Yess
17th Dec 2020, 3:33 PM
Yashi Sahu
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(); }
17th Dec 2020, 3:41 PM
Yashi Sahu
0
Where I used the value of a=1 b=2 c=3
17th Dec 2020, 3:42 PM
Yashi Sahu