CFanatic

Go Back   CFanatic > Programming > C# Programming

Join CFanatic Forum Now

Noob question topic posted under C# Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 09-04-2010, 07:36 PM
Junior Member
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
georgewashere is on a distinguished road
| More
Noob question

Hi first off let me say I just started c# today and have absolutely no knowledge in coding other than HTML/CSS and minimal java scripting.

I've gotten much discouragement from other forums on the internet about just "diving" into such a thing as programming but I would really like to do it.

My question :

In a book I am studying, the exercise tells me the loop executes 7 times.

I just don't get it, I'm getting lost in it. I've reread the definitions and what not but I'm still not seeing how it executes 7 times, if someone could explain(this apparently very simple problem that I'm stumped with) that would be amazing.

Loop #3
Code:
int j = 2;
for (int i=1; i < 100; i = i * 2)
{
   j = j - i;
   while (j < 25)
   {
        j = j + 5;
   }
}
Using Microsoft Visual C# 2010 and I'm guessing .net 4.0?
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question techinspiration C Programming 4 01-23-2011 01:51 AM
Question rohitphulsunge C Programming 1 02-23-2010 04:26 AM
hi.. noob here in c++...can you help me? zacknie C++ Programming 0 09-12-2009 11:19 PM
hi question about c zinoun C Programming 1 03-22-2009 10:32 PM
C++ noob darkangel C++ Programming 5 10-28-2007 08:47 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 04:49 PM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board