Created
July 17, 2017 12:55
-
-
Save ThePratikSah/19721893fe4d3720cea1b605b79270b7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/* | |
Author: Pratik Sah | |
Topic: To find the average of three numbers. | |
*/ | |
main(){ | |
float a,b,c,e; | |
printf("Enter 1st number:"); | |
scanf("%f", &a); | |
printf("Enter 2nd number:"); | |
scanf("%f", &b); | |
printf("Enter 3rd number:"); | |
scanf("%f", &c); | |
e = (a + b + c)/3; | |
printf("%f", e); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment