> thanks but now another problem :
> 
> when i wrote : Rational ( 26,65 ) it gives syntax error :(
> 
>>ruby ratio.rb
> ratio.rb:1: syntax error, unexpected ',', expecting ')'
> Rational (6 , 10)
>              ^
>>Exit code: 1
> 
> normally it must give : (2/5)


ok i just solve it by writing like :

Rational (26),(65)  -------> 2/5
-- 
Posted via http://www.ruby-forum.com/.