## 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();
}
Divide two float numbers
Posted by Bijon Labels: ansi c balagurusamy, ansi c solutions, balagurusamy programming solution, c how to program solutions, c programing, c programming tutorial, homework solution, problem solutions, program solutions
Subscribe to:
Post Comments (Atom)


0 comments
Post a Comment