Divide Program in C

#include<stdio.h>
#include<conio.h>
void main()
{
float x,y,divide;
clrscr();
printf("Enter the value=");
scanf("%f%f",&x,&y);
divide=x/y;
printf("Divide=%f",divide);
getch();
}
Output:-
Enter the value=10
2
Divide=5



Previous                                   Next

No comments:

Post a Comment