Having problems with your Computer Utilities & Maintenance ?

Related to c++ nested loop

\015 C++ code using nested loop for\015\01211\015\01212 13 \015\01214 15 16\015\01217 18 19 20\015\01221 22 23 24 25\015

Answers :

Hi,

Following is the code extract (please dont mind if any syntactical errors, its long time back when i've done C++ coding, but following logic is 100% working)

int x,y,z=10;

for (x=1;x<=5;x++)
{
for (y=1;y<=x;y++)
{
z++;
cout<<z<<"\\t";
}
cout<<"\\n";
}



11
12 13
14 15 16
17 18 19 20
21 22 23 24 25

Hope this is what you need.
Repair Help & Product Troubleshooting for Computer Utilities & Maintenance

Tips for a great answer:

- Provide details, support with references or personal experience .
- If you need clarification, ask it in the comment box .
- It's 100% free, no registration required.

Suggested Questions/Answers :

Related to c++ nested loop


Hi,Following is the code extract (please dont mind if any syntactical errors, its long time back when i've done C++ coding, but following logic is 100% working)int x,y,z=10;for (x=1;x<=5;x++){ for ... Computer Utilities & Maintenance

Alert chipset heat sink not detected system halted error message


This is a relatively common problem in the Dimension 4600c. The small, fan-less heatsink for the Northbridge chip (a memory/video-to-cpu communications chip) is held down by a spring, which is anchored by two small wire loops soldered to the motherbo ... Dell Dimension 4600C PC Desktop

Computer restarts on own and thats all it does.


I have a similar situation, only worse. \015\012\015\012Same brand, Toshiba M1. I also get the loop at the begining but this is during the install process (windows vista). It goes half way and needed to reboot (that is correct). But when ... Toshiba Tecra M1 PC Laptops

Screen does not turn on but green light is on.


Green light indicates the monitor is getting power. Nothing coming up on the screen indicates, No Signal.No signal from the computer. This means the computer itself isn't working.A bad power supply in the computer can cause th ... Sampo P7011M (Silver) 17 in. Flat Panel LCD Monitor

Reboot is in a loop and c drive is corrupt


I had this same problem on a machine that was brought in for me to repair. After removing a lot of spyware, the machine started logging out immediately after logging on. \015\012Here's how I fixed it: \015\012First: I used the XP CD to boot to the re ... Acer Aspire 5500 5570-2609 Laptop

REBOOT LOOP -EMACHINE T5026


You have provided some good information, but more detail is needed.Is the system still under warranty? How long ago did this start? Have you added any new hardware or software?Your reboot issue might not be hard drive or MBR ... E-Machines eMachines Desktop PC

I am having a problem with javascript:swap7 - Dell E153FP 15" LCD Monitor


Hi, i'm having problems understanding the code for selection sort.From\015\012what i understood the 2 nested for loops keep taking an entry in the\015\012array at position i and another entry in the array in position i+1 and\015\012compar ... Dell E153FP 15" LCD Monitor

Travelmate will not load windows, ram works, battery and ac are in the right voltage area, moved the ram to second slot and get the same reaction , will load bios and contiue to load up to the windows scrollbar at bottom then flash a blue screen and restart itself over into a loop. ran repair utility and an unable to repair giving the following problem signature 1 autofailover 2 6.0.6000.16386.6.0.60001.18000 3 6 4 393222 5 norootcause 6 norootcause 7 0 8 2 9 wrprepair 10 10 os version 6.0.6000.


Its a hardrive problem and it sounds like its not the os in the harddrive., related to hardrive itself. :/\015\012while booting press F8\015\012tryed safemodes? \015\012\015\012last know config?\015\012\015\012if y ... PC Laptops

Emachine T6216 Automatically Shuts down


Hello Michael,\015\012\015\012I had a customer come in to the shop with their eMachine with the same problem as you. These are the steps I took to solve the problem;\015\012\015\0121) Clean out the computer with c ... E-Machines eMachines Desktop PC

Reboot after windows is loading files - Vista install.


How's you cpu fan working?, rebooting problems are usually related with cooling/cpu problems, do you hear the fan going when the computer starts? is there a way for you to replace the cpu fan/heat sink, or possible the cpu itself to test? ... HP Pavilion Elite M9150F Desktop PC

Heater blower quit working on my 2005 yukon. fuses appear to be O.K. any advise on what to look for next?


Look for:More fuses, a blower relay, how the heck this relates to Dell Flatpanel Monitors; some wrenches and rubber gloves (over a liner glove if it's cold!), small animals hording food or nesting in your blower area (and thus likely also a bad ... Dell UltraSharp 2005FPW 20.1" LCD Monitor

Computer not booting in safe mode


I'm not sure what OS, but i will assume Windows XP\015\012You my need to repair the boot sector, or the actual install.. there are two ways to attempt this.\015\012\015\0121) boot from your windows XP cd, and select " recovery console"\015\0122) Once ... IBM Lenovo ThinkCentre M55e PC Desktop

NTLDR is missing


\015\012 \015\012\015\012 \015\012\015\012 \015\012\015\012\015\012 \015\012Reference number: CH000465\015\012 \015\012NTLDR is Missing.\015\012 \015\012Issue:NTLDR is Missing. ... E-Machines eMachines Desktop PC

When i turn on my pc it gives me a mesage that it will shut down in 60 seconds then reboot. it will do this a few times, then it will freeze up. could this be a virus or is the hard drive going out?


Could be many things but I would say not a virus effect I have ever seen or heard of and highly doubt a hardware/hard drive causing either. THink about you did before it started doing this and maybe relates to what I think it is.. either Windows or a ... PC Desktops

Power Green Light Flashing HP Desk Top PC m7250n


During a power outage their is a surge when power come back on the grid (surge can be caused by lighting strikes akso). This surge trips the internal procters inside the power supply to protect the Mother Board, hard drive, processor and fans and any ... HP Media Center m7250n (ED842AA) PC Desktop

HP PAVILION LAPTOP SHUTS OFF AND REBOOTS AFTER A FEW MINUTES


This issue could be caused by any of the below possibilities\015\012 \015\012Software issue or error. Hardware issue or error. Heat related issue. Computer virus. Issue with operating system. ... PC Desktops

Acer Aspire 3680 In a Loop


What I wanted you to clarify was the message that you noted as "something to the effect of 'Beginning of physical damage'", but you only saw it the one time I see on rereading the post, so never mind.\015\012\015\012Have you tried doing a ... Acer Aspire 3680 Laptop

Rebooting on Dell D600 Latitude


This issue could be caused by any of the below possibilities.\015\012Software issue or error. Hardware issue or error. Heat related issue. Computer virus. Issue with operating system. Software issue or error ... Dell Dimension 9200 PC Desktop

Sound is static-y. I switched with speakers that work, but sound is still static. You can hear a little bit, but at near max volume. I have tried to uninstall and reinstall Realtek sound driver. Updated driver through windows update and dell update doesn't work. Tried to rollback driver, that doesn't work. HELP!


Donkandrun\015\012\015\012In regards to the sound that you are hearing it is most likely one of 2 things, ether a ground loop or bus noise. This will take testing on your part to see where the issue is.\015\012\015\012First w ... Dell Inspiron 530s Desktop Computer (ddcwfa2_5) IntelPentium dual-core processor E2160 (1MB L2,1.80G

Computer crash and restart - PC Desktops


Windows restarts without warning \015\012Cause:This issue could be caused by any of the below possibilities. \015\012Software issue or error. Hardware issue or error. Heat related issue. Comput ... PC Desktops

Toshiba M55-S139 Laptop randomly freezes without warning.


Ok this may be a multistep process to verify for sure that the board is bad before we replace it then I will help you find one, just bear with me. Usually freezing does have to do with overheating, but as you said, you checked that. Do you mind tel ... Toshiba Satellite M55-S141 Notebook

Thinkpad r40 wont boot - has no post beeps- lights come on- then go out except for 2 .Was told it could be a graphics card problem or a screen issue- by someone on a geek squad. They apparently don't know that post beeps are from a motherboard.


Hi, \012\012During the boot at the THINKPAD SCREEN press the Thinkvantage key ( Blue button ) it will launch rescue and recovery and allow you to reboot factory. This only works if you did not corrupted/deleted the rescue and recovery hidden pa ... IBM ThinkPad R40 2722 Notebook

My laptop went to white screen every time when I on it. How to solve....my laptop -- aspire 4710z -- almost 2 years but it happened JUST it 4 mths.....


Hi..Your problem are related with my laptop problem, but i totally fix it with my own. From my experience I can tell that this problem may be related to the\015\012following:\015\0121. Loose connection between the video cable and th ... Acer Aspire 4720 Notebook

I have power out of adapter but laptop is completely dead; no lights come on at all.


Laptop is dead. How to troubleshoot the problem.\015\012In this post I’ll explain h ... Toshiba Satellite A45-S150 Notebook

My loptop is an Averatec 7100. How can I test the motherboard? I took it to a computer repair shop and they said is the motherboard, I want to know how can I test it on my own.


This is more of a system diagnosis that an actual motherboard testing procedure, but since all components attach to the motherboard in one way or another it could count as a prcess of elimination......\015\012\015\012 ... PC Desktops
  • Start your question with What, Why, How, When, etc. and end with a "?"
  • Be clear and specific
  • Use proper spelling and grammar
all rights reserved to the respective owners || www.electronic-servicing.com || Terms of Use || Contact || Privacy Policy
Load time: 0.0510 seconds