Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ari.com;
- import java.util.Scanner;
- public class Lasku {
- public static void main(String[] args) {
- Scanner lukija = new Scanner(System.in);
- int luku1 = 0;
- int luku2 = 0;
- System.out.print("Anna ensimmäinen luku: ");
- luku1 = lukija.nextInt();
- System.out.print("Anna toinen luku: ");
- luku2 = lukija.nextInt();
- System.out.print("Antamiesi lukujen summa on " + (luku1 + luku2));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement