WAP TO Add, subtract and multiply two numbers. Display the output with proper
messages. The numbers are 50, 155.
Answers
Answered by
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
Computer Science,
10 hours ago
Math,
10 hours ago
Math,
10 hours ago
CBSE BOARD X,
20 hours ago
English,
20 hours ago
Math,
8 months ago
Math,
8 months ago