Computer Science, asked by shardbreaker, 5 months ago

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 Anonymous
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