Control: operators, loops, conditions
Calculate Pi
Calculate Pi
Prime number
Prime number
Prime number
Prime number
Read from command line
Read from command line
Extra Task
75.84K
Category: programmingprogramming

Control: operators, loops, conditions

1. Control: operators, loops, conditions

Kamill Gusmanov
@GusmanovKamill

2. Calculate Pi

Leibniz formula

3. Calculate Pi

Leibniz formula
Accuracy

4. Prime number

What is prime number?

5. Prime number

What is prime number?
How can we check it?

6. Prime number

What is prime number?
How can we check it?
What kind of loop we can use for finding first 1000 prime number?

7. Prime number

What is prime number?
How can we check it?
What kind of loop we can use for finding first 1000 prime number?
Write the code that calculated first 1000 prime numbers

8. Read from command line

Scanner - http://www.cs.utexas.edu/users/ndale/Scanner.html

9. Read from command line

Scanner - http://www.cs.utexas.edu/users/ndale/Scanner.html
write 2 numbers:>
1
2
enter operation:>
%
result: 0
write 2 numbers:>...

10. Extra Task

Write password generator on a given alphabet for the given password length
(recursive, or better recursiveless).
Result: {“aa”, “ab”, “ba”, “bb” }
English     Русский Rules