#include<stdio.h>
#include<conio.h>
void main()
{
float u,p,diff;
float quo;
clrscr();
printf("\n\tType the value of u:^");
scanf("%f",&u);
printf("\n\tType the value of p:^");
scanf("%f",&p);
if(u>p)
{
diff =u-p;
quo =u/p;
printf("\n\n\t%.0f - %.0f = %.0f",u,p,diff);
printf("\n\n\t%.0f / %.0f = %.1f",u,p,quo);
}
getch();
}
No comments:
Post a Comment