Output

5984984

Discussion

For ‘for’ loop use – for(;num!=0;)

Compiled with JDK 9

Categories: Java

faltutech

Pursuing MCA from YMCA University, Faridabad

Leave a Reply

Your email address will not be published. Required fields are marked *

Read previous post:
Generate Random Numbers Using Java
Generate Random Numbers Using Java

[crayon-5a2bbac2204eb812481939/] Output [crayon-5a2bbac2204f5582278754/] Discussion -- Your output will be Different. For More details Visit : https://docs.oracle.com/javase/9/docs/api/java/util/Random.html

Close