Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- public class Main {
- public static void main(String[] args) {
- //1
- double time = 1 + 40d/60 + (35d/60)/60;
- double miles = 24f * 1.6f;
- System.out.println("Otvet: " + miles/time);
- //2
- for (int i=0; i<50; i++) {
- System.out.println("Aman");
- }
- //3
- int a = 0;
- for (int i=0; i<=10; i++)
- {
- a = a + i;
- System.out.println(a);
- }
- //4
- System.out.println("МамаМылаРаму");
- System.out.println("МамаРамуМыла");
- System.out.println("РамуМамаМыла");
- System.out.println("РамуМылаМама");
- System.out.println("МылаРамуМама");
- System.out.println("МылаМамаРаму");
- //5
- System.out.println("30 minutes in seconds: " + 30*60);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement