Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement