By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,310 Members | 725 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,310 IT Pros & Developers. It's quick & easy.

Its not really C++ but programming logic

P: 6
Okay, I am taking an intro to programming class and this is what I have to do:

Design the logic for a module that would print every number from 1 through 10. A loop must be used in this flowchart.

I know how to use Visio for the flowchart, but I am not sure how to use a loop with this problem. I am not actually coding anything, but in the early stage of design. If anyone could help with what the flowchart would look like, or the psuedocode for this problem, I would appreciate it greatly ... thanks!
May 2 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 1,764
So we have this:

Counter starts with 1 and increases by one until reaching 10.

So here is the psecudocode for that:

start the loop.
printout counter;
if counter=10 break the loop;

Now is up to u to implement this in ur alghorytham.

May 2 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.