Of course not. I said I tought at my first use of C/C++.So you are saying that because BASIC allows you to write in 4 lines what you wrote in 17 that BASIC is more powerful?
And don't use the word "powerful". It has no meaning at all.
Have you read all the post before sending new one? I really love C++ and hated QBASIC (though I started with it) at the time I learned C/C++.Your objections to C obviously come from a programmer's standpoint who is very new to C and well versed in BASIC.
I know my code was not the best (was the worst I think). But QBASIC require less knowledge for a good code. It was an example from a beginner's viewpoint.
It is exactly what I wanted to say, my friend.BASIC simply does half the work for you. C makes you do the work. This is why BASIC stands for Beginner's All-purpose Symbolic Instruction Code. There's a place for both.
About your optimized code, it is not my example at all. It should first save whole the string in a var (it is important in my example). So please write another optimized code (please do it in a way to get an integer from user for age, like basic code).
Good example.It's kind of like cooking. You can make a cake using flour, eggs, etc. (the C concept) or open a box of cake mix (the BASIC concept).