write a java program to calculate of profit after reading cost price and selling price through keyboard.
Answers
Answered by
2
#include<stdio.h>
int main()
{
int sell,cost,profit=0;
printf("Input Selling price\n");
scanf("%d",&sell);
printf("Input Cost price\n");
scanf("%d",&cost);
profit=sell-cost;
printf("Profit= %d",profit);
return 0;
}
Hope it is helpful
Sahil
Similar questions