Using for loops, I'm supposed to do this...
Double the 2nd, 4th, 6th and 8th digits.
Then take nine away from each answer that is ten or more.
The digit is 514345917.
I just don't know how to get the 2nd, 4th, 6th and 8th digit.
I understand basic stuff like
for (i=0; i<10; i+=2)
printf("%d", i);
but I'm having trouble thinking of a way to get those digits. :(
Can someone help me? :)
2006-11-02
13:45:39
·
3 answers
·
asked by
beelbe
1
in
Computers & Internet
➔ Programming & Design