SHARE
TWEET

Untitled

a guest Oct 18th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4.  
  5.     public static void main(String args[]) {
  6.  
  7.         Scanner wczytaj = new Scanner(System.in);
  8.         int zmienna;
  9.  
  10.         System.out.println("Podaj wartość:");
  11.         zmienna = wczytaj.nextInt();
  12.         System.out.println(zmienna);
  13.  
  14.         wczytaj.nextLine();
  15.         System.out.println("podaj napis");
  16.         String napis;
  17.         napis = wczytaj.nextLine();
  18.  
  19.  
  20.  
  21.         /*
  22.         final double PI = 3.14;
  23.  
  24.         int zmienna = 4;
  25.         double ulamek = 3.45;
  26.         System.out.println(zmienna);
  27.  
  28.         zmienna = 135;
  29.         System.out.println(zmienna);
  30.         System.out.println(ulamek);
  31.         System.out.println(PI);
  32.         //PI = 4.15; błąd, nie zieniamy wartosci stałych!
  33. */
  34.     }
  35. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top