Recent Feedback
Write a nested loop to produce the following output: 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5
Hi,
Can you provide me formatted output?
please wait
[code]for(int i=1;i<=5;i++) { for(int j=i;j<=5;j++) { cout<<j<<" "; } cout<<endl; }[/code]
Write a program statement for the following using the X array defined as: int X [ 40 ]; Replace the value of the fifth element with the value of the next to the last element value.
wait
ok
thanks
no problem
X[4] = X[38]
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.