> I'm low on time and I wouldn't make it by myself.
That's unfortunate, but your inability to plan ahead is not our problem
> I guess this will be easy for you (good programmers).
Guess how we got good at this - by not trying to palm off our homework on other people. Skill comes through endless practice, not though using google or trying to get someone else to do your homework for you.
> btw I can't use structures in this program.
Anything else to declare?
I mean, you obviously know that any sane programmer would use structs for this problem, yet the "homework" seems to be an exercise in writing cripple-ware.
From past experience, the "can't use..." statements usually have a list of other things that can't be used as well, otherwise there would be no way for you to plausibly pass this off as your own work. You see, at that point, it becomes a pointless guessing game for us (not that we were going to do anything anyway).
If you really care, then make an effort and sacrifice some other activity to free up more time for this. It's your choice.