#include <stdio.h>
int main() {
float p,s;
printf("Enter purchase & selling amount:");
scanf("%f %f",&p,&s);
if(p<s)
{
printf("Profit=%.2f",s-p);
}
else if(p>s)
{
printf("Loss=%.2f",p-s);
}
else
{
printf("No profit or loss");
}
}
https://www.youtube.com/watch?v=EUm5_llWHBQ Hi, namaste Kamj. So, uh I just have been going through something in my life that I wanted to ...
No comments:
Post a Comment