Created
August 26, 2017 15:03
-
-
Save annibuliful/d3d775a25bc36e204993002778dc0196 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
#include <stdio.h> | |
int main(){ | |
int num1 , num2; | |
float sum , avg; | |
printf("Number 1: "); | |
scanf("%d" , &num1); | |
printf("Number 1: "); | |
scanf("%d" , &num2); | |
sum = num1 + num2; | |
avg = sum/2; | |
printf("sumation is %.2f " , sum); | |
printf("average is %.2f " , avg); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment