Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 17th, 2005, 10:24 PM
Kudo_Shiho Kudo_Shiho is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Location: Hawaii
Posts: 12 Kudo_Shiho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 2 m 52 sec
Reputation Power: 0
Question Help on Loops

Hi everyone
I need to write a code using two loops and I need to write a flowchart for that code before doing that but I have a problem. I figured out how to write the flowchart for the second loop but I am confused at how to write the first loop.
It says for the first loop:
1. Count the number of even postive integers that are <= N.
2. Write this count.
Example:
1) If N=4, the number of even positive integers <= 4 is 2. (where the 2 positive integers are 2 and 4)
2) If N=3, the number of even positive integers <=3 is 1. (where the 1 positive integer is 2)
Can anyone help me? I tried it out many times but it doesn't seem to come out. Thank you.

Reply With Quote
  #2  
Old April 18th, 2005, 12:24 PM
csillagyitzik csillagyitzik is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 39 csillagyitzik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 49 m 40 sec
Reputation Power: 4
try this

hope that is what you need - look at attached jpg
Attached Images
File Type: jpg flow.jpg (24.0 KB, 86 views)

Reply With Quote
  #3  
Old April 18th, 2005, 09:45 PM
Kudo_Shiho Kudo_Shiho is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Location: Hawaii
Posts: 12 Kudo_Shiho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 2 m 52 sec
Reputation Power: 0
Quote:
Originally Posted by csillagyitzik
hope that is what you need - look at attached jpg

Thank you very much. I will try it out

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Help on Loops


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway