20.09.2015 Views

Programming in C

Kochan - ProgramminginC

Kochan - ProgramminginC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

54 Chapter 5 Program Loop<strong>in</strong>g<br />

Program 5.5<br />

Cont<strong>in</strong>ued<br />

What triangular number do you want? 75<br />

Triangular number 75 is 2850<br />

What triangular number do you want? 83<br />

Triangular number 83 is 3486<br />

The program consists of two levels of for statements.The outermost for statement<br />

for ( counter = 1; counter

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!