Write a program using variables to find
the profit and profit percent of a certain
transaction where
S.P.= `10000 and C.P.= `7000.
Class 9 - Computer Applications - Ch 3
Answers
Answered by
31
Hey there!
Program using variables to find the profit and profit percent of a certain
transaction where S.P.= `10000 and C.P.= `7000.
class Question
{
static void main()
{ int SP=10000,CP=7000;
double profit,profitPercentage;
profit=SP-CP;
profitPercentage=(double)profit/CP*100;
System.out.println("Profit="+profit);
System.out.println("Perimeter="+profitPercentage);
} }
Hope It Helps YoU!
Answered by
3
i hope this will helpful for you
Attachments:
Similar questions
Math,
6 months ago
Physics,
6 months ago
Social Sciences,
6 months ago
Computer Science,
1 year ago
Math,
1 year ago
Science,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago