11
22 /* LOOPS */
33
4-
5- public class JavaLoops {
4+ import java . util .*;
5+ public class JavaLoops {
66 public static void main (String args []){
77 int counter = 0 ;
88 while (counter < 3 ){
99 System .out .println ("Navnitya is a Software Developer" );
1010 counter ++;
1111 }
1212
13- }
14- }*/
13+ // }
14+ // }*/
1515
1616/* Print no 1 to 10 */
1717
18- public class JavaLoops {
19- public static void main (String args []){
20- int counter = 1 ;
21- while (counter <=10000 ){
22- System .out .print (counter +" " );
23- counter ++;
18+ // public class JavaLoops{
19+ // public static void main(String args[]){
20+ int counter1 = 1 ;
21+ while (counter1 <=10000 ){
22+ System .out .print (counter1 +" " );
23+ counter1 ++;
2424 }
25- }
26- }
25+ // }
26+ // }
2727
28- import java . util .*;
29- public class JavaLoops {
30- public static void main (String args []){
28+
29+ // public class JavaLoops{
30+ // public static void main(String args[]){
3131 System .out .print ("Enter tha range of nos : " );
3232 Scanner sc = new Scanner (System .in );
3333 int range = sc .nextInt ();
@@ -329,27 +329,27 @@ public static void main(String args[]){
329329 DEF
330330 GHIJ
331331*/
332- public class JavaLoops {
333- public static void main (String args []){
334- int n = 4 ;
332+ // public class JavaLoops{
333+ // public static void main(String args[]){
334+ int nq = 4 ;
335335 char ch = 'A' ;
336- for (int i = 1 ; i <=n ; i ++){
336+ for (int i = 1 ; i <=nq ; i ++){
337337 for (int j = 1 ; j <=i ; j ++){
338338 System .out .print (ch );
339339 ch ++;
340340 }
341341 System .out .println ();
342342 }
343- }
344- }
343+ // }
344+ // }
345345/*
346346 1
347347 12
348348 123
349349 1234
350350*/
351- public class JavaLoops {
352- public static void main (String args []){
351+ // public class JavaLoops{
352+ // public static void main(String args[]){
353353 int n = 10 ;
354354 // int num = 1;
355355 for (int i =1 ; i <=n ; i ++){
@@ -362,16 +362,16 @@ public static void main(String args[]){
362362 }
363363 System .out .println ();
364364 }
365- }
366- }
365+ // }
366+ // }
367367/*
368368 ****
369369 * *
370370 * *
371371 ****
372372*/
373- public class JavaLoops {
374- public static void main (String args []){
373+ // public class JavaLoops{
374+ // public static void main(String args[]){
375375 for (int line =1 ; line <=4 ; line ++){
376376 if (line ==2 && line ==3 ){
377377 System .out .print ("* *" );
0 commit comments