You are viewing a single comment's thread. Return to all comments →
why this code is not producing any result
public static void main(String[] args) { Scanner sc= new Scanner(System.in); int num= sc.nextInt(); for(int i = 0 ;i=num-1){ System.out.print("#"); } else{ System.out.print(" "); } }System.out.println(); } }
Seems like cookies are disabled on this browser, please enable them to open this website
Staircase
You are viewing a single comment's thread. Return to all comments →
why this code is not producing any result
public static void main(String[] args) { Scanner sc= new Scanner(System.in); int num= sc.nextInt(); for(int i = 0 ;i=num-1){ System.out.print("#"); } else{ System.out.print(" "); } }System.out.println(); } }