Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

입력된 수가 없을 경우 경고 메시지 출력및 프로그램 종료 #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -213,3 +213,10 @@ pip-log.txt

#Mr Developer
.mr.developer.cfg


#################
## IntelliJ
#################
.idea/
*.iml
6 changes: 6 additions & 0 deletions Fibonacci.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
public class Fibonacci{

public static void main(String []args){
if(args.length == 0)
{
System.out.println("입력된 수가 없습니다.\n프로그램을 종료합니다.");
return;
}

int start = Integer.parseInt(args[0]);
int fib1 = 0;
int fib2 = 1;
Expand Down