Bu bölümde döngülerle ilgili biraz çalışma yapacağız. Döngü kullanma pratiğini geliştirmek lazım. Bunları aynı sırayla çözmelisin. Zaten Git gide zorlaşan sıradalar.
In this topic, we will look at “stars” for some practice on loops. Codes will be in java however it is easy to apply that to C and C++ as well. If you are planning to write their code, do it in the same order.
I) For a number N , N rows output of that shape.
N sayısı için N satır olacak şekilde aşağıdaki çıktıyı verecek program yaz.
Input:
5
Output:
x
xx
xxx
xxxx
xxxxx
II) For a number N , N rows output of that shape.
N sayısı için N satır olacak şekilde aşağıdaki çıktıyı verecek program yaz.
Input:
5
Output:
x
xx
xxx
xxxx
xxxxx
III) For a number N , N rows output of that shape.
N sayısı için N satır olacak şekilde aşağıdaki çıktıyı verecek program yaz.
Input:
5
Output:
x
xxx
xxxxx
xxxxxxx
xxxxxxxxx
IV) For a number N , 2N-1 rows output of that shape.
N sayısı için 2N-1 satır olacak şekilde aşağıdaki çıktıyı verecek program yaz.
Input:
5
Output:
x
xxx
xxxxx
xxxxxxx
xxxxxxxxx
xxxxxxx
xxxxx
xxx
x
________________________________________________________________________________
Continue reading for solutions
Okumaya devam etmeye tikladığınızda çözümler görünür.