Skip to content

Commit dee3281

Browse files
oop lab-12
1 parent d753186 commit dee3281

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

com oop-lab/lab-12

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import java.util.Random;
2+
3+
public class lab12 {
4+
5+
public static void main(String[] args)
6+
{
7+
Random rad=new Random(1000);
8+
for(int i=0;i<100;i++)
9+
{
10+
System.out.print(rad.nextInt(49)+" ");
11+
12+
if((i+1)%10==0)
13+
{
14+
System.out.println();
15+
}
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)