Computer Science, asked by MasterQuestioner, 1 year ago

Write a program using int variables to
find the sum of three numbers,
say 15, 36 and 45 and subtract the result
from 100.

Answers

Answered by duragpalsingh
18

Hey there!

Program using int variables to  find the sum of three numbers,   say 15, 36 and 45 and subtract the result   from 100.

class Question

{     static void main()  

  {         int a=15,b=36,c=45,d=100,e,f;      

   e=a+b+c;

        f=d-e;    

     System.out.println("Sum="+e);  

       System.out.println("Difference="+f);    

 } }

Hope It helps YoU!

Answered by llNehaII
2

Hope its helps you. ....

Attachments:
Similar questions