Computer Science, asked by MasterQuestioner, 1 year ago

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 duragpalsingh
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 annu8053
3

i hope this will helpful for you

Attachments:
Similar questions