online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/* * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template */ package com.mycompany.btjv; import java.util.Scanner; /** * * @author PC */ public class b1 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Nhap n: "); int n = Integer.parseInt(scan.nextLine()); for (int i = n; i >= 1; i--) { if (i == 1) { for (int j =1; j <= n; j++) { System.out.print("*"); } } else { for (int j = 1; j < i; j++) { System.out.print(" "); } System.out.println("*"); } } } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue