From: "amir a." Date: 2011-08-12T22:10:24+09:00 Subject: A Corresponding between C++ AND Ruby Hi I am C++ programmer and in C++ I used some thing that I want corresponding those things in Ruby. please help me. 1 - In C++ , I can write this program but in Ruby I can't: int i,x; int sum=0; for( x=0 ; x <= 50 ; x++ ) { cin >> i; sum = sum + ( x + i ) ; } cout << sum; 2 - int a,b,c,d; while( 1 ) { cin >> a >> b >> c >>d ; if( a < 0 || b < 0 ) break; cout << a << " " << b << " " << c << " " << d << endl; } thanks. -- Posted via http://www.ruby-forum.com/.