Skip to content

Instantly share code, notes, and snippets.

@sachinsaxena25
Created August 1, 2019 15:17
Show Gist options
  • Save sachinsaxena25/5b2be3f6dbcd694cc7abb296f79396fa to your computer and use it in GitHub Desktop.
Save sachinsaxena25/5b2be3f6dbcd694cc7abb296f79396fa 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("substract of numbers:%.2f", c);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment