Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Úloha 4
- public static void main(String[] args) {
- //U=R*I
- Scanner xy = new Scanner(System.in);
- System.out.println("Výpočet elektrického napätia U");
- //Scanner
- System.out.println("Zadaj R");
- double x = xy.nextDouble();
- System.out.println("Zadaj I");
- double y = xy.nextDouble();
- //Výpočet
- double c = x * y;
- System.out.println("U=" + c);
- xy.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement