the problem was: Life, the Universe, and Everything
my code on c++ is:
#include <stdio.h>
int main()
{
int i,q,n,num[1000];
//printf("\ninput:\n");
for(i=0; i<=5-1; i++)
{
scanf("%d",&num[i]);
}
//printf("\noutput:\n");
i=0;
while(num[i]!=42)
{
printf("\n%d\n",num[i]);
i++;
}
}
created
last reply
- 3
replies
- 702
views
- 2
users