GitBucket
Pull requests
Issues
Snippets
Sign in
fuyac1192209
/
2020-fuyac119220
Fork
0
Created at Tue Apr 28 22:22:00 JST 2020
Download ZIP
HTTP
Embed
Embed this snippet in your website.
HTTP
Clone with Git using the repository's web address.
Code
Revision
Forks
fuyahonma
revised this
on 28 Apr 2020
b0be731
2020-fuyac119220
print"卒業までに必要な単位を入力してください\n" impo = gets.chomp!.to_i printf("卒業までに必要な単位は%dです。今どれくらい獲得していますか?\n",impo) got = gets.chomp!.to_i change = impo - got printf("あなたが必要とする単位はあと%dです。\n", change)