C Programming | Networking | General Computer | Exam Questions & Answers | How To Article | Tips & Tricks | PHP Programming | Source Code | PHP | MySql | Pointer | Operators | Constant | Variable | Keyboard | Algorithm | Flowchart | Storage Classes | Function | Ms-Excel, basic of Excel, learn Excel, Online tutorial of Ms-Excel, Excel step by step learn,
This trick is good but it can be solved by or simply so that a new program begineer can understand easily
@Ankit,Share your knowledge, so beginner and expert improve his/her programming skills.
Wrong program ............Outer for loop should b ..................for(r=1; num<=r; r++)
@Akash Singh,In above program, if we replace outer for loop condition as for(r=1; num<=r; r++)and num=5then when first time loop checking the condition as 5<=1 ( i.e. num<=r )here condition false, so loop never executed or run, hence output of above program is nothing.