IF CONDITION plese help

This is a discussion on IF CONDITION plese help within the C Programming forums, part of the General Programming Boards category; You have 9 empty boxes in the beginning and you will fill these boxes with X characters.
In the beginning
...

IF CONDITION plese help

You have 9 empty boxes in the beginning and you will fill these boxes with X characters.
In the beginning
You will take one row number and one column number between 1 and 3 from user in for each
move, if user enters irrelevent input program will exit.
If user enters as first move:
row number: 2
column number: 3
X
Then you will get second move from user:
row number: 3
column number: 1
X
X
By this way you will fill in all boxes by taking totally 9 row and 9 column inputs from user.
You must show each step to the user.
If user enters the same row and column of the box which has already an X in it, program will
exit.
For example, for the following placement:
X X
X X
X
If user enters:
row number: 1
column number: 1
You will warn user about her/his mistake and program will exit.
You will use if condition statements, in your code.
we are not allowed to use loop and array in this program

Then are they teaching you to be a programmer or a lawyer? I could probably find ways of doing something that technically isn't strictly using an array, and one can use recursion instead of a loop. However the programmer in me says that this is just plain stupid!

if condition

ı do not want you to write my code, ı only want solution way,ı thought one way (using if )and now writing ,but it is very very long. ı know,may be you said your sentences for our goodness,
ı would want to send my code,but ı thougt that it took very large places in forum.

ı send one part but not "complete".if you explain ,where ı can write shorter (if,if else) ,ı will be happy...

I think that being asked to write this without loops or arrays is actually some kind of sick joke, or perhaps a test. There are 9! (nine factorial = 362880) possible combinations of ways to fill this grid, and that's if you ignore the invalid moves! Otherwise it's 9^9 = 387420489 if statements your program would require!!! You can combine a few of the validity checks after a few moves, but it still wont get you under 1 million if-statements This must be a test and you're supposed to tell whoever gave you this most absurd assignment that it is absolutely insane. Either that or you misheard or misunderstood. Even writing a code generator to write the bulk of the code for you would be pretty stupid. We can't help you to do the impossible.

Using loops and arrays it would take about 10 if-statements. You can simulate an array by using switchs statements though, if you're allowed to use that:

Stupid probably wasn't the right word for it. As fun or clever as it might be, it's just counter-productive here. This person is not being taught how to program, they're being taught how not to program!
It's like being asked to produce a car with square wheels.