public class Solution {
public static void main(String[] args) {
String[] mas = {"Мама","Мыла","Раму"};
for (int i = 0; i <= 3; i++){
for (int b = 0; b <= 3; b++){
for (int c = 0; c <= 3; c++){
if (i != b && i != c && b !=c )
System.out.println (mas[i] + mas[b] + mas[c]);//напишите тут ваш код
}
}
}
}
}
package com.javarush.task.task03.task0313;
/*
Мама мыла раму
*/
public class Solution {
public static void main(String[] args) {
String[] mas = {"Мама","Мыла","Раму"};
for (int i = 0; i <= 3; i++){
for (int b = 0; b <= 3; b++){
for (int c = 0; c <= 3; c++){
if (i != b && i != c && b !=c )
System.out.println (mas[i] + mas[b] + mas[c]);//напишите тут ваш код
}
}
}
}
}