Register for your free account! | Forgot your password?

You last visited: Today at 15:50

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



VB 6.0

Discussion on VB 6.0 within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2008
Posts: 1
Received Thanks: 0
VB 6.0

Who is Genius to solve this ff. problems especially 3 and 4?

"Problem is attached"
Attached Files
File Type: doc Assignment machine problem.doc (188.0 KB, 3 views)
ilovemaye is offline  
Old 09/02/2012, 19:39   #2
 
tolio's Avatar
 
elite*gold: 2932
The Black Market: 169/1/0
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
problem 3

from memory:
could be right could be wrong you should try it...

Code:
dim out as string

select case design
case "A"
for i = 0 to 9
   for a = 0 to i
      out = out & "*"
   next
   out = out & vbcrlf
next
case "B"
for i = 0 to 9
   for a = 0 to 10 - i
      out = out & "*"
   next
   out = out & vbcrlf
next
case "C"
for i = 0 to 9
   for a = 0 to 9
   if a < 10 - i then
      out = out & " "
   else
      out = out & "*"
   next
out = out & vbcrlf
next
end select
tolio is offline  
Reply




All times are GMT +2. The time now is 15:50.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.