This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gmail.sergaav.dz1_1; | |
import java.util.Scanner; | |
public class dz1_1 { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
System.out.println("Введите 5-и значное целое число: \n"); | |
int x; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gmail.sergaav.dz1_2; | |
import java.util.Scanner; | |
public class dz1_2 { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
System.out.println("Введите стороны треугольника :\n" + "Сторона а:"); | |
double a = sc.nextDouble(); | |
System.out.println("\n" + "Сторона b:"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gmail.sergaav.dz1_3; | |
import java.util.Scanner; | |
public class dz1_3 { | |
public static void main(String[] args) { | |
Scanner sc=new Scanner(System.in); | |
System.out.println("Введите радиус окружности"); | |
double radius; | |
radius=sc.nextDouble(); | |
double ringlength; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gmail.sergaav.dz3_1; | |
import java.util.Scanner; | |
public class dz3_1 { | |
public static void main(String[] args) { | |
double a; | |
double b; | |
double c; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gmail.sergaav.dz3_2; | |
import java.util.Scanner; | |
public class dz3_2 { | |
public static void main(String[] args) { | |
double x; | |
double y; | |
double r=4.0; | |
Scanner sc = new Scanner (System.in); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gmail.sergaav.dz3_3; | |
import java.util.Scanner; | |
public class dz3_3 { | |
public static void main(String[] args) { | |
double x; | |
double y; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gmail.sergaav.dz3_4; | |
import java.util.Scanner; | |
public class dz3_4 { | |
public static void main(String[] args) { | |
Scanner sc=new Scanner(System.in); | |
int i=0; | |
int j=0; | |
int n; | |
System.out.println("Input length:"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gmail.sergaav.dz3_5; | |
import java.util.Scanner; | |
public class dz3_5 { | |
public static void main(String[] args) { | |
double n; | |
double fact=1; | |
int i; | |
Scanner sc = new Scanner (System.in); | |
System.out.println("Input a:"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gmail.sergaav.dz4_1; | |
public class dz4_1 { | |
public static void main(String[] args) { | |
int[][] mas = { { 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0 }, | |
{ 0, 0, 0, 0, 0, 0 }, { 1, 1, 1, 1, 1, 1 }, | |
{ 1, 1, 1, 1, 1, 1 }, { 1, 1, 1, 1, 1, 1 }, }; | |
System.out.println("Заданный массив: \n "); | |
for (int i = 0; i < mas.length; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gmail.sergaav.dz4_2; | |
import java.util.Scanner; | |
import java.util.Random; | |
public class dz4_2 { | |
public static void main(String[] args) { | |
System.out.println("Input massive length: "); | |
Scanner sc = new Scanner(System.in); |
OlderNewer