More actions
imported>enochbible No edit summary |
imported>smksyj No edit summary |
||
| Line 33: | Line 33: | ||
=== 박정근 === | === 박정근 === | ||
=== 서민관 === | === 서민관 === | ||
[[[ | |||
class ToyProgram | |||
@inputNum | |||
attr_writer:inputNum | |||
attr_reader:inputNum | |||
@randNum | |||
attr_writer:randNum | |||
attr_reader:randNum | |||
def run() | |||
self.randNum = rand * 10 | |||
self.inputNum = gets.to_i | |||
if self.inputNum > self.randNum then | |||
puts "You win" | |||
else | |||
puts "You lose" | |||
end | |||
end | |||
end | |||
a = ToyProgram.new() | |||
a.run() | |||
]]] | |||
=== 서영주 === | === 서영주 === | ||
=== 김수경 === | === 김수경 === | ||
Revision as of 20:15, 30 June 2011
이원희/Android
이원희
박정근
서민관
서영주
김수경
변형진
임상현
강소현
김태진
경세준
김준석
서지혜
권순의
송지원
이승한/Android reverse engineering, Git
박정근
서민관
서영주
김수경
변형진
임상현
강소현
김태진
경세준
김준석
서지혜
권순의
송지원
박성현
정의정
서지혜/Ruby
박정근
서민관
[[[ class ToyProgram @inputNum attr_writer:inputNum attr_reader:inputNum @randNum attr_writer:randNum attr_reader:randNum
def run() self.randNum = rand * 10 self.inputNum = gets.to_i
if self.inputNum > self.randNum then puts "You win" else puts "You lose" end end end
a = ToyProgram.new() a.run() ]]]