Open Andy179176 opened 2 years ago
Задание выполнил.
package com.company;
import java.sql.SQLOutput;
public class Main {
public static void main(String[] args) {
//задание №1: [] {} () & * ^ ~ - + _ :; "" \/|
System.out.println("I think: " + "\"Java is easy.\""); //задание №2
System.out.println(11+21+31); //задание №3
//задание №4: I read about variables
int side = 3;
System.out.println("area of a square with a side " + side + " is " + (side*side)); //задание №5
int a = 9; //задание №6
int b = 3;
int addition = a + b;
int subtraction = a - b;
int multiplication = a * b;
int division = a / b;
System.out.println(addition);
System.out.println(subtraction);
System.out.println(multiplication);
System.out.println(division);
}
}
.