Hi All,
How to translate this C code in Ruby.
Thanks.

#include <stdio.h>
struct person {
  char name[32];
};
struct person p[2];
int i;
main()
{
for (i = 0; i < 2; i++)
{
  printf("\nName: ");
  scanf("%s", p[i].name);
}
printf("\n\n----------");
for (i = 0; i < 2; i++)
{
  printf("\nName: %s", p[i].name);
  printf("\n");
 }
return 0;
}

--
jilani
__________________________________________________
http://space.tin.it/scuola/jkhaldi