Advertisement
Mancolo

Untitled

Jan 28th, 2021
708
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.83 KB | None | 0 0
  1. package com.company;
  2.  
  3. public class Main {
  4.  
  5.     public static void main(String[] args) {
  6.         //1
  7.         double time = 1 + 40d/60 + (35d/60)/60;
  8.         double miles = 24f * 1.6f;
  9.         System.out.println("Otvet: " + miles/time);
  10.         //2
  11. for (int i=0; i<50; i++) {
  12.     System.out.println("Aman");
  13. }
  14.     //3
  15.         int a = 0;
  16. for (int i=0; i<=10; i++)
  17. {
  18. a = a + i;
  19. System.out.println(a);
  20.         }
  21. //4
  22.         System.out.println("МамаМылаРаму");
  23.         System.out.println("МамаРамуМыла");
  24.         System.out.println("РамуМамаМыла");
  25.         System.out.println("РамуМылаМама");
  26.         System.out.println("МылаРамуМама");
  27.         System.out.println("МылаМамаРаму");
  28. //5
  29.         System.out.println("30 minutes in seconds: " + 30*60);
  30.  
  31.     }
  32. }
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement