VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Determining the final values of a, b, and c.

by Anonymous (267 Submissions)
Category: Miscellaneous
Compatability: VB.NET
Difficulty: Unknown Difficulty
Originally Published: Fri 30th May 2008
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Determining the final values of a, b, and c.

Rate Determining the final values of a, b, and c.



     a = 2
     b = 4
     c = 10
     while c > 6
          perform changeBAndC()
     endwhile
     if a = 2 then
          perform changeAAndB()
     endif
     if c = 10 then
          perform changeAAndB()
     else
          perform changeBAndC()
     endif
     print a, b, c
stop

changeBAndC()
     b = b + 1
     c = c - 1
return

changeAAndB()
     a = a + 1
     b = b - 1
return

Download this snippet    Add to My Saved Code

Determining the final values of a, b, and c. Comments

No comments have been posted about Determining the final values of a, b, and c.. Why not be the first to post a comment about Determining the final values of a, b, and c..

Post your comment

Subject:
Message:
0/1000 characters