Skip to content

Instantly share code, notes, and snippets.

@sachinsaxena25
Created August 1, 2019 15:08
Show Gist options
  • Save sachinsaxena25/4580a8e3c2738c34cf6a857c8f21e958 to your computer and use it in GitHub Desktop.
Save sachinsaxena25/4580a8e3c2738c34cf6a857c8f21e958 to your computer and use it in GitHub Desktop.
#include<stdio.h>
int main(void){
float a = 0.0f;
float b = 0.0f;
float c = 0.0f;
printf("please enter the first number:\n");
scanf("%f", &a);
printf("please enter the second number:\n");
scanf("%f", &b);
c = a + b;
printf("sum of numbers:%.2f", c);
return 0;
}
@dbc2201
Copy link

dbc2201 commented Aug 1, 2019

good job

@sachinsaxena25
Copy link
Author

sachinsaxena25 commented Aug 1, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment