Can anyone solve this question in java (nested loop)
this is the pattern:
1
00
222
0000
33333
only in java
thank u
Answers
Answered by
1
public class JavaExample{
public static void main(String args[]){
//double value
double dnum = 99.99;
//convert double to int using typecasting
int inum=(int)dnum;
//displaying int value after conversion
System.out.println(inum);
}
}
Similar questions