Skip to content

Instantly share code, notes, and snippets.

@FreeFly19
FreeFly19 / C++
Last active February 28, 2016 12:16 — forked from anonymous/C++
Алгоритм Евкліда 4-x чисел
#include "stdafx.h"
#include <iostream>
using namespace std;
int NOD(int a, int b) {
if (a == 0) {
return b;
}
package homework2;
import java.util.Scanner;
/**
* Created by Denis on 18.10.2016.
*/
public class ArithmeticProgression {
public static void main(String[] args) {
@FreeFly19
FreeFly19 / Ex1.java
Last active October 24, 2016 14:44 — forked from OlexsandrZ/Ex1
Home work#2 Заїка Олександр
package com.company;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Введіть число:");
int a = sc.nextInt();
if (a > 0) {
@FreeFly19
FreeFly19 / EighthSum
Last active October 23, 2016 21:35 — forked from IgorCherniavsky/EighthSum
SecondHomework
/**
* Created by Igor on 19.10.2016.
*/
public class EightSum {
public static void main(String[] args) {
for (int i = 1; i <= 10; i++) {
for (int j = 1; j <= 10; j++) {
if (i < j) {
System.out.print("#");
} else {
@FreeFly19
FreeFly19 / Ex1
Last active October 23, 2016 21:45
Home work #2 Чуєнко Віталій
/**
* Created by Чуєнко Віталій on 19.10.2016.
*/
public class Ex1 {
public static void main(String[] args) {
int a = 4;
if (a % 2 == 0) {
System.out.println("even");
} else {
package com.company;
public class Home_2_T_1 {
public static void main(String[] args) {
int a = 8;
if (a%2==0) {
System.out.println("even");
} else {
@FreeFly19
FreeFly19 / Ex1.java
Last active October 23, 2016 21:59 — forked from ValdemarK/Ex1.java
Home work #2
package com.company;
public class Main {
public static void main(String[] args) {
int a = 4;
if(a % 2 == 0) {
System.out.println("even");
} else {
System.out.println("odd");
@FreeFly19
FreeFly19 / Ex1
Last active October 23, 2016 22:06
Home work #2
import java.util.Scanner;
public class Ex1 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.print("Введіть додатне число = ");
int a = in.nextInt();
@FreeFly19
FreeFly19 / 1
Last active October 23, 2016 22:12 — forked from makaliuk/1
Makaliuk Maxim 1
сложн ( ̄ー ̄)
@FreeFly19
FreeFly19 / Ex1.java
Last active October 23, 2016 22:15 — forked from greensma/Ex1.java
Home work #2 Иван Смаглюк
class Ex1 {
public static void main(String args[]) {
int a = 4;
System.out.print(a);
if (a % 2 == 0) {
System.out.println(" is Even number");
} else {
System.out.println(" is Odd number");
}