| |
| ![]() |
| Computer programming for IT Sir Aziz Akhtar |
![]() |
| | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
| ||||||||||||||||
| Table of 5-10 Using Nested Loops Here is the source code for a Nested loop to write the Table of 5 upto 10
| ||||||||||||||||
| The Following 2 Users Say Thank You to BSIT07-01 For This Useful Post: | ||
!!Ahmad Mushtaq!! (24-04-2008), .BZU. (25-04-2008) | ||
|
#2
| |||||||||||||||
| Assalam-o-Alaikum! Hi guys! As usual : I copied Wasif's code and pasted it in my Visual C++. It gave the following error: PROBLEM:
Please remove the space between the two adjacent '<' after <<tableof*counter on the following line: cout<<tableof<<"x"<<counter<<"="<<tableof*counter< <endl;REASON: When I tried to edit Wasif post, I found no blank space there. May be the problem is because of the way this forum formats the text. Well! There is no need to worry! | |||||||||||||||
|
#3
|
| Dear Thanks for identifying the Bug, I've removed the bug now.. What do you think about the method , If you have any other method to solve this problem , Please Share it here. |
| The Following User Says Thank You to BSIT07-01 For This Useful Post: | ||
.BZU. (25-04-2008) | ||
|
#4
| ||||||||||||||||
| More Precise Form with three Variables Instead of 4
| ||||||||||||||||
| The Following User Says Thank You to BSIT07-01 For This Useful Post: | ||
.BZU. (25-04-2008) | ||
|
#5
| ||||||||||||||||
| Generalized form to write table of a range :bs2:
| ||||||||||||||||
| The Following User Says Thank You to BSIT07-01 For This Useful Post: | ||
.BZU. (25-04-2008) | ||
|
#6
| |||||||||||||||
| |||||||||||||||
| Bhai I really miss you in the C++ class last day.. kisi bhi student ko yeh bnana nahi aya tha , aur mujhko bhi nahi aya .. But main nay kuch banaya tu liya tha .. Mujhay yeh samjh nahi aa rahi hay kay yeh aap nay iss main akhir main
__________________ (¯`v´¯) `*.¸.*` ¸.*´¸.*´¨) ¸.*´¨) (¸.*´ (¸.Bzu Forum Don't cry because it's over, smile because it happened ![]() Last edited by BSIT07-01; 25-04-2008 at 08:14 AM. Reason: Spell Mistake | |||||||||||||||
|
#7
|
| I've Clarified the reason in first post , That is . Counter is the Variable which I used in the Inner While Loop to write the Table , If we don't Give it Value of 1 , The inner loop will not be executed because for that value of counter should be <=10 I think , Now it should be Clear. |
![]() |
| Tags |
| 510, loops, nested, table |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Binary Table 01 Geeky Table | .BZU. | Designed Pictures | 0 | 28-04-2011 05:10 AM |
| Lesson 3: Loops | bonfire | Introduction to Computing | 0 | 26-02-2011 10:21 PM |
| Find the AREA of a Home By using Nested Struct C++ | shmsa | Object Oriented Programming | 4 | 06-09-2008 05:41 AM |
| Loops & switches | BSIT07-01 | Web Development | 1 | 21-01-2008 02:38 PM |