Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.javarush.test.level04.lesson10.task04;
- /* S-квадрат
- Вывести на экран квадрат из 10х10 букв S используя цикл while.
- Буквы в одной строке не разделять.
- */
- public class Solution
- {
- public static void main(String[] args) throws Exception
- {
- //Напишите тут ваш код
- int i1 = 0;
- int i2 = 0;
- while (i1<10) {
- while (i2<10) {
- System.out.print("S");
- i2++;
- }
- System.out.println();
- i2=0;
- i1++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment