Please post the full problem. First you just said what the output should be. Then you said it should use a loop. Then you said the bounds of the loop are fixed.
sir i said at first that "This is my CODE" and i post it "the result is or the output of that is "1" then the big real problem here is that , we should only use 1loop and and the result is/ or the output:
1468
87654321
array is not allowed sir :( its to complicated ..
Please Help.
sir i said at first that "This is my CODE" and i post it
I understand that you posted your code. What I'm asking is for the actual problem, not the program. Something says you can't use an array. Something says you can't use 2 loops. Something says you must use one loop. Something says the loop must go from zero to 8. What is that something? Can you post it?
The problem sir is what should i do about this problem.. actually we only allowed to use only 1 loop "for loop" and array is not allowed and also the output is
1468
87654321
it makes me sick, we only allowed to use 1 loop "for loop" and "if" "else" only sir and the loop will start from 1 to 8 only..
And none of the provided solutions are according to your taste?
The problem sir is what should i do about this problem.. actually we only allowed to use only 1 loop "for loop" and array is not allowed and also the output is
If that are the requirements dhaydens solution does what you want.
hmmmm im just asking some knowledge about programming sir... my course is Geodetic Engineering and i cant relate the world of programming to my course.. its to hard for me. sorry sir. if the output of what you given to me is
1468
87654321.. im asking for another so that i can learn from you and from them.. thank you so much sir..