Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package testconsole;
- import java.util.Scanner;
- public class Testconsole {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- System.out.println("Lütfen bir sayı giriniz.");
- int sayi = sc.nextInt();
- System.out.println();
- for (int i = sayi ; i > 0; i--) {
- for (int j = 0; j < i; j++) {
- System.out.print(i+" ");
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement