-
-
Save w3Abhishek/07510aaa6f7cb8c9767578a7b30e685b 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> | |
/* codewin.org */ | |
int main() | |
{ | |
int x,y,sum; | |
float average; | |
printf("Enter first number :"); | |
scanf("%d",&x); | |
printf("Enter second number :"); | |
scanf("%d",&y); | |
sum=x+y; | |
average= (float)(x+y)/2; | |
printf("\nSum of %d and %d is = %d",x,y,sum); | |
printf("\nAverage of %d and %d is = %f",x,y,average); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment