Skip to content

Instantly share code, notes, and snippets.

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