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)
-
A country has a capital city A dining philosopher uses a fork A file is an ordinary file or a directory file Files cont...
-
import java.io.*; public class Dataio { public static void main(String args[]) throws IOException { DataInputStr...
No comments:
Post a Comment