import java.util.Scanner;
public class Program_3 {
public static void main(String[] args) {
int number1,number2,result;
Scanner scan = new Scanner(System.in);
number1 = scan.nextInt();
number2 = scan.nextInt();
result = number1 + number2;
System.out.println("Sum of two number : "+result);
}
}
Find all the practical at one place of Gujarat Technological University(GTU) With Solutions.
Tuesday, September 18, 2018
Write a program to enter two numbers and perform mathematical operations on them.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment