New course! Every coder should learn Generative AI!
Try a free lesson+ 2
Help
How do i do it like this? 10987654321 1098765432 109876543 10987654 1098765 109876 10987 1098 109 10 this is what i've done so far, how do i start at 10? https://code.sololearn.com/cSG621dgzzN0/?ref=app thanks
1 Answer
+ 16
public class Program
{
public static void main(String[] args) {
for (int i = 1; i<=10; i++)
{
for (int j = 10; j>=i; j--)
{
System.out.print(j);
}
System.out.println();
}
}
}