SHARE
TWEET

Untitled

a guest Oct 21st, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Úloha 4    
  2. public static void main(String[] args) {
  3.                                                                                 //U=R*I
  4.         Scanner xy = new Scanner(System.in);
  5.  
  6.         System.out.println("Výpočet elektrického napätia U");
  7.  
  8.         //Scanner
  9.         System.out.println("Zadaj R");
  10.         double x = xy.nextDouble();
  11.         System.out.println("Zadaj I");
  12.         double y = xy.nextDouble();
  13.  
  14.         //Výpočet
  15.         double c = x * y;
  16.         System.out.println("U=" + c);
  17.  
  18.         xy.close();
  19.     }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top