Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public class Isääsnussittu{
  2. public static void main(String[] args) {
  3.  
  4. System.out.println("Anna minulle kokonaisluku");
  5. int numero1 = In.lueInt();
  6. System.out.println("Anna toinen kokonaisluku");
  7. int numero2 = In.lueInt();
  8. int summa = numero1+numero2;
  9. int erotus = numero1-numero2;
  10. System.out.println("Numeroiden summa on "+summa+" ja niiden erotus on "+erotus);
  11.  
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement