Last active
August 1, 2019 16:02
-
-
Save sachinsaxena25/8f8fc21b348d9f9af1fcc5d56af2bc4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main(void){ | |
int a = 0; | |
float b = 0.0f; | |
double c = 0.0; | |
long double d = 0.0; | |
printf("please enter the first number:\n"); | |
scanf("%d", &a); | |
printf("please enter the second number:\n"); | |
scanf("%f", &b); | |
printf("please enter the third number:\n"); | |
scanf("%lf", &c); | |
d = (a + b + c) / 3; | |
printf("Avarage of Number:%.2Lf", d); | |
return 0; | |
} |
dbc2201
commented
Aug 1, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment