0

Write a program to print the sum of two numbers.

5th Jun 2017, 12:06 PM
Nick
Nick - avatar
4 Respostas
+ 6
System.out.println(2+5);
5th Jun 2017, 12:07 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 5
public class Program { public static void main(String[] args) { int a = 7; int b = 8; int c = a + b; System.out.println("The sum of two numbers is "); System.out.print(c); } } P.S- I don't know much about java yet..just similar logics in all languages,thats it ☺
5th Jun 2017, 12:10 PM
ElricTheCoder
ElricTheCoder - avatar
+ 4
That's too easy
5th Jun 2017, 12:07 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 4
must be homework
5th Jun 2017, 12:07 PM
jay
jay - avatar