fork(1) download
  1. // your code goes here
  2.  
  3. // const prompt=require("prompt-sync")();
  4.  
  5. // const num= prompt("enter number");
  6. // const n=parseInt(num)
  7.  
  8. for(let i=0; i< Math.floor(Math.sqrt(5));i++){
  9. for(let j=0; j<5-i;j++){
  10. process.stdout.write(" ")
  11. }
  12. console.log()
  13. }
Success #stdin #stdout 0.05s 40464KB
stdin
Standard input is empty
stdout