i need a program that asks for one number and output like this:
1234
123
12
1
12
123
1234
NOTE:: in the example above the input given is number 4.
requirement doing this in using nest FOR loops.
i started coding it bu i dont get the algorithm or shall i say the concept help me please
add my codes :((((((((((( pleaseeeeeee as your xmas gift to meeee.
import java.io.*;
public class CaseStudy{
public static InputStreamReader sti = new InputStreamReader(System.in);
public static BufferedReader input = new BufferedReader(sti);
public static void main(String[]args) throws IOException{
Double x,y;
System.out.println("Enter a positive integer: ");
x=Double.parseDouble(input.readLine());
for(x=0;x<y;y++ ){ \* i dont have really the concept to start with i tried making few
codes but all i get is 44444 or something like that help please*/
}
}
}