import java.util.Scanner;
public class FirstPrograming {
public static void main(String[] args) {
System.out.println("welcome java programing: ");
Scanner scanner = new Scanner(System.in);
System.out.println("Enter number one: ");
int numOne = scanner.nextInt();
System.out.println("Enter number Two: ");
int numTwo = scanner.nextInt();
System.out.println("Enter number three: ");
int numThree = scanner.nextInt();
int sum= numOne+numTwo-numThree;
System.out.println("sum of two numbers is: " +sum);
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter