Import java. util. arraylist;
Import java. util. List;
Public class song {
/**
* @ Param ARGs
*/
Public static void main (string [] ARGs ){
// Todo auto-generated method stub
/*
* 1. Calculate the first 10 divisible by 3 but not 7 within 100.
**/
Int COUNT = 0;
For (int A = 0; A <= 100; A ++)
{
If (a % 3 = 0 & A % 7! = 0)
{COUNT = count + 1;
System. Out. Print ("A =" + A + "\ t ");
If (COUNT = 10 ){
Break;
}
}
}
System. Out. println ();
/*
* 2. Calculate all prime numbers within 200
*
**/
For (INT q = 1; q <= 200; q ++ ){
For (INT u = 2; U <= Q; U ++)
{
If (Q % u = 0 & Q = u ){
System. Out. Print (U + "");
}
If (Q % u = 0 & Q! = U ){
Break;
}
}
}
System. Out. println ();
/*
* 4. Bring 123456789 back.
*
**/
Int [] A = {1, 2, 4, 5, 6, 7, 8, 9, 10 };
For (INT B = 0; B <A. length; B ++)
{
Int c = 10-b;
System. Out. Print (C + "\ t ");
}
/*
* 5 .*
***
*****
*******
*********
**/
For (INT I = 0; I <= 5; I ++ ){
For (Int J = 0; j <5-i; j ++ ){
System. Out. Print ("");
}
For (INT n = 1; n <= (I-1) * 2 + 1; n ++ ){
System. Out. Print ("*");
}
System. Out. println ();
}
}
}