2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Java for文を使用した画期的なひし形の作り方wwww

Posted at
public class sample {
	public static void main(String args[]){
		int i;


		for(i=0; i<5; i++){
			switch (i) {
			case 0:
				System.out.println("  *  ");
				break;
			case 1:
				System.out.println(" *** ");
				break;
			case 2:
				System.out.println("***** ");
				break;
			case 3:
				System.out.println(" *** ");
				break;
			case 4:
				System.out.println("  *  ");
				break;
			default:
				break;
			}
		}


	}
}

変数2つを使用して1,3,5,3,1の計算になるような計算式を募集いたします。

2
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?