Divide Two Numbers in C

program:
#include<stdio.h>
int main()
{
 float a,b,c;
 printf("Enter first number:\n");
 scanf("%f",&a);
 printf("Enter second number:\n");
 scanf("%f",&b);
 c=a/b;
 printf("Division of two number:%f",c);
return 0;
}
output:
Related Links:
C program to add two numbers
C program to subtract two numbers
Previous Post Next Post