Computer Science, asked by shreyamehrotra30, 20 hours ago

WAP TO Add, subtract and multiply two numbers. Display the output with proper
messages. The numbers are 50, 155.

Answers

Answered by Ronithreddy
0

Answer:

public class prog

{

   public static void main(String args[])

   {

       int a=50;

       int b=155;

       int c=a+b;

       int d=a-b;

       int e=a*b;

       System.out.println("added value is="+c);

       System.out.println("subtracted value is="+d);

       System.out.println("multiplied value is="+e);

   }

}

Explanation:

Similar questions