## Problem 2.4 :: Write a program that requests two float type numbers from the user and then divides the first number by the second and display the result along with the numbers.


## Solution ::

## Write down headers yourself.

void main()
{float a,b,x;
clrscr();
printf("Enter two number to divide: ");
scanf("%f %f",&a,&b);
x=a/b;
printf("\n\n%f/%f = %f\n",a,b,x);
getch();
}

0 comments