Table of 5-10 Using Nested Loops Table of 5-10 Using Nested Loops Here is the source code for a Nested loop to write the Table of 5 upto 10 Code: #include |
Re: Syntax Error may occur in Wasif's program! 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: Quote:
Please remove the space between the two adjacent '<' after < cout< 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! :peace: |
Re: Table of 5-10 Using Nested Loops 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. |
Re: Table of 5-10 Using Nested Loops More Precise Form with three Variables Instead of 4 Code: #include |
Re: Table of 5-10 Using Nested Loops Generalized form to write table of a range :giggle::bs2: Code: #include |
Re: Table of 5-10 Using Nested Loops 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 Quote:
|
Re: Table of 5-10 Using Nested Loops 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. |
All times are GMT +5. The time now is 10:39 AM. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.