public class LengthOfLongsSerise { public static void main(String[] args) { int a ; int cnt1 = 0; int cnt2 = 0; int cnt3 = 0; int cnt4 = 0; a=(int)(Math.random()*100); int j=0; int p=55; for(int i=1;i<=10;i++){ j=a=(int)(Math.random()*100); j++; System.out.println(j); } }
count = 3 for (i = 1; i <= count; ++i) { print "series ", i, ": " lastNumber = 0 while (true) { number = Random() if (number > lastNumber) { print number, ", " lastNumber = number } else { print "\n" break; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)