Академический Документы
Профессиональный Документы
Культура Документы
com
Solutions to the questions in book. Page 1 of 4
/* 5
1
22 */
333 public class IX
4444 { public static void main(String args[])
55555 { for(int i=1; i<=5; i++)
{ for(int j=i; j<=5; j++)
*/ { System.out.print( i );
public class IX }// j
{ public static void main(String args[]) System.out.println();
{ for(int i=1; i<=5; i++) }// i
{ for(int j=1; j<=i; j++) }//main
{ System.out.print( i ); }//class
}// j
System.out.println();
}// i /*
}//main 5
}//class 44
333
2222
/* 11111
55555
4444 */
333 public class IX
22 { public static void main(String args[])
1 { for(int i=5; i>=1; i--)
{ for(int j=i; j<=5; j++)
*/ { System.out.print( i );
public class IX }// j
{ public static void main(String args[]) System.out.println();
{ for(int i=5; i>=1; i--) }// i
{ for(int j=1; j<=i; j++) }//main
{ System.out.print( i ); }//class
}// j
System.out.println();
}// i
}//main
}//class
/*
11111
2222
333 [END]
44