0
Write a program to print the sum of two numbers.
4 Respostas
+ 6
System.out.println(2+5);
+ 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 ☺
+ 4
That's too easy
+ 4
must be homework