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 b3 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Nhap n:"); int n = Integer.parseInt(scan.nextLine()); int f1 = 0; int f2 = 1; int fn = 1; System.out.println("Day so fibonacci < " + n + " va chia het cho 2 va 3:"); while (fn < n) { if (fn % 2 == 0 && fn % 3 ==0) { System.out.print(fn + "; "); } f1 = f2; f2 = fn; fn = f1 + f2; } } }

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