Adam Mulan wrote in post #1011423:
> Hi,
> I wrote following C program:
>
> #include<stdio.h>
> int main(void)
> {
>   char str[20] = "Hello.";
>   int num = 353;
>   for(int i = 1; i <= 10; ++i)
>     printf("%.10s - %.5d file.\n", str, num);
>   return 0;
> }
>
> How can I write it in Ruby?

You'll find all the info you need at 
http://www.ruby-doc.org/docs/ProgrammingRuby/

If you're already a C programmer, you'll be able to breeze through this 
book very quickly.

Homework problems don't really belong on this list.

Regards,

Brian.

-- 
Posted via http://www.ruby-forum.com/.