+
۲

برنــــــــــــامه نویسی تمرکز - مثلث قائم الزاویه به زبان جاوا (اینجا کلیک کنید)

برنــــــــــــامه نویسی تمرکز - مثلث قائم الزاویه به زبان جاوا

مثلث قانم الزاویه

import java.util.Scanner;

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/**
*
* @author sara
*/
public class mosalas {
public static void main(String[] args) {
Scanner sara = new Scanner(System.in);
int n=sara.nextInt();
for (int radif = 1; radif <=n; radif++) {
for (int i = 1; i <= radif; i++) {
System.out.print("*");

}
System.out.println();
}
}
}

 

رای دهندگان

دیدگاهتان را بنویسید