Trending ▼   ResFinder  

ICSE Class X Notes 2027 : Computer Applications (Ryan International School (RIS) ICSE, Kharghar, Navi Mumbai) : n\

5 pages, 15 questions, 0 questions with responses, 0 total responses,    1    0
Advika
  
+Fave Message
 Home > adobkiaiscool >   F Also featured on: School Page

Formatting page ...

Patterns -Only logic a. 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 int i , j ; for( i = 1 ; i< =5 ; i++) { for(j =1 ; j<= i ; j ++) System.out.print( j ); System.out.println( ); } b. 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 int i , j ; for( i = 5 ; i > =1 ; i- -) { for(j =1 ; j<= i ; j ++) System.out.print( j ); System.out.println( ); } c. 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 int i , j ; I-TECH:2020 Page 1 for( i = 5 ; i > =1 ; i- -) { for(j =i ; j>= 1 ; j - -) System.out.print( j ); System.out.println( ); } d. 5 5 5 5 5 4 4 4 4 3 3 3 2 2 1 int i , j ; for( i = 5 ; i > =1 ; i- -) { for(j =i ; j>= 1 ; j - -) System.out.print( i ); System.out.println( ); } e. 1 3 4 5 6 7 7 8 9 10 9 10 11 12 13 int i , j , k; for( i = 1 ; i< =9 ; i+=2) { k=i ; for(j =1 ; j<= i ; j +=2) System.out.print( k++ ); System.out.println( ); } f. I-TECH:2020 Page 2 1 3 5 7 9 3 5 7 9 5 7 9 7 9 9 int i , j ; for( i = 1 ; i <=9 ; i+ =2) { for(j =i; j<= 9 ; j+=2) System.out.print( j ); System.out.println( ); } g. A A 1 A 1 B A 1 B 2 A 1 B 2 C int i , j, k ; char c; for( i = 1 ; i< =5 ; i++) { c= A ; k =1; for(j =1 ; j<= i ; j ++) { if(j%2 = = 0) System.out.print( k++ ); else System.out.print( c++ ); } System.out.println( ); } h. I-TECH:2020 Page 3 1 2 3 4 5 2 3 4 5 1 3 4 5 1 2 4 5 1 2 3 5 1 2 3 4 int i , j, k ; for( i = 1 ; i< =5 ; i++) { k=i; for(j =1 ; j<= 5; j ++) { if(k==6) K=1; System.out.print( k++); } System.out.println( ); } i 1 2 3 4 5 2 2 3 4 5 3 3 3 4 5 4 4 4 4 5 5 5 5 5 5 int i , j, k ; for( i = 1 ; i< =5 ; i++) { for(j =1 ; j<= 5; j ++) { if(j<=i) System.out.print( i); else System.out.print( j); } System.out.println( ); } j. I-TECH:2020 Page 4 B B L B L U B L U E B L U E J String s= BLUEJ ; int i; for(i=1; i<=s.length() ; i++) System.out.println(s.substring(0,i)); k. B L U E J B L U E B L U B L B String s= BLUEJ ; int i; for(i=s.length() ; i>=1 ; i--) System.out.println(s.substring(0,i)); j. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 int i , j, k=1 ; for( i = 1 ; i< =5 ; i++) { for(j =1 ; j<= i ; j ++) System.out.print( k++ ); System.out.println( ); } I-TECH:2020 Page 5

Formatting page ...

Related ResPapers
ICSE Class X 2014 : Computer Applications : ICSE 2014 board provided solutions
by akarshjain 
ICSE Class X Notes 2025 : Computer Applications (Ebenezer International School (EISB), Bangalore) : Array
by _vaidikk 
ICSE Class X Notes 2020 : Computer Applications (Stepping Stone School (High), Rishra, Hooghly)
by aj2307 
ICSE Notes 2018
by manumansi 

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 


© 2010 - 2026 ResPaper. Terms of ServiceContact Us Advertise with us

 

adobkiaiscool chat