Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
Guys this code is working in my laptop but in solo learn its not working check this all of you and tell me reason?
public class Piramid extends Thread { public void run(){ int i,j,k; for(i=1;i<10;i++){ for( k=i;k<10;k++) System.out.print(" "); try{ for( j=1;j<=i;j++){ sleep(400); System.out.print(" *");} } catch(InterruptedException e){ System.out.println("some error occur"); } System.out.println(); }} public static void main(String a []){ Piramid o=new Piramid(); o.start ();}}
2 ответов
+ 1
sololearn has a sh! t compiler. as long as it works on your laptop it's fine
0
ya u r right