#include <stdio.h>
int main() {
float p,s;
printf("Enter purchase & selling amount:");
scanf("%f %f",&p,&s);
if(p<s)
{
printf("Profit of %.2f Rs",s-p);
}
else
{
printf("Loss of %.2f Rs",p-s);
}
}
Can’t Read Books? Try This 5-Minute Habit Instead (It Actually Works) Hi, namaste Krishna. So, um today I'll be sharing a very good ha...
No comments:
Post a Comment