5
54 543 5432 54321 i tried to print it using below for loop but idk why its not working , Can someone please check and correct it
enter code here
for(int i = 0;i<=5;i++,count = 1,System.out.println()){
for(int j = 5;j>=i;j--)
{
System.out.print("");
}
for (int k = 5;count <=i;count++,k--)
{
System.out.print(k+"");
}
Aucun commentaire:
Enregistrer un commentaire