for (int i = 0; i < userInput; i++)
{
System.out.print(" " +(i%7)+1);
}
Assuming it is java code that you are talking about.
2
solved using for loop in repeating number of day [closed]
for (int i = 0; i < userInput; i++)
{
System.out.print(" " +(i%7)+1);
}
Assuming it is java code that you are talking about.
2
solved using for loop in repeating number of day [closed]