4
34
234
1234
It's a pattern question ...
Please write in java statements using "
"for"
Answers
Answered by
1
01234
It is your answer
Answered by
0
Answer:
Explanation: You need to nest two for loops in one program to get the desired input -
Here are the Java Statements for the following questions -
public class Problem{
public static void main(String args[]){
int i,j;
for(i=4;i>=1;i--){
for(j=i;j<=4;j++){
System.out.print(j);
}
System.out.println();
}
}
}
Similar questions
Math,
6 months ago
Psychology,
6 months ago
Science,
1 year ago
Science,
1 year ago
Environmental Sciences,
1 year ago