In this C-program we will take two floats(decimal number) as input from user and print the result(division).color>
input:
Two numbers(i.e : 5.7,6.8,3.5 etc.)output:
Division of the two numbersCODE---->
#include
#include
{
float a,b,div;
printf("Enter two numbers:-color>");
scanf("%f%fcolor>",&a,&b);
div=a/b;
printf("The result is = %fcolor>",div);
getch();
}
color>