Ruby Install Guide::WindowsでのPATHの通し方

print( "体重(kg)?" ) a=gets.chomp.to_f print( "身長(cm)?" ) b=gets.chomp.to_f

c=a/(b/100)**2 print("BMIは",c)

if

c<20.0 

then print( "やせている" ) elsif

20.0<=c<24.0 

then print ( "普通" ) elsif

24.0<=c<26.5 

then print ( "太り気味" ) elsif

26.5<=c

then print ( "肥満" ) end



The RWiki