Login|Contact Us
Question and Answer

Programming

Ask a Programming Question, Get an Answer ASAP!

  • Ask A Question
  • Browse Answers
  • Meet The Experts
  • How JustAnswer Works

Write a nested loop to produce the following output:

 
LogicPro's Avatar
  • Answered by:LogicPro
  • Computer Software Engineer
  • Positive Feedback: 99.4 %
  • Accepted Answers: 5549
Verified Expert
in Programming

Recent Feedback

Positive
fast response.
Positive
fast response
Positive
great
Positive
Thank you
Positive
Thank you
Positive
He responded quickly to my question with a solid answer.
Positive
Perfect as usual
Positive
thank you
Positive
thank you
Positive
Outstanding help!

Customer Question

Write a nested loop to produce the following output:
1 2 3 4 5
2 3 4 5
3 4 5
4 5
5

Submitted: 332 days and 17 hours ago.
Category: Programming
Value: $45
Status: CLOSED

Accepted Answer

Picture
Expert:  LogicPro replied 332 days and 17 hours ago.


LogicPro :

Hi,

LogicPro :

Can you provide me formatted output?

Customer :

Write a nested loop to produce the following output:
1 2 3 4 5
2 3 4 5
3 4 5
4 5
5

LogicPro :

please wait

LogicPro :

[code]
for(int i=1;i<=5;i++)
{
for(int j=i;j<=5;j++)
{
cout<<j<<" ";
}
cout<<endl;
}

[/code]

Customer :

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.

LogicPro :

wait

Customer :

ok

LogicPro :

thanks

Customer :

no problem

LogicPro :

X[4] = X[38]

Expert TypeComputer Software Engineer
Category: Programming
Pos. Feedback: 99.4 %
Accepts: 5549
Answered: 5/8/2012

Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

Ask this Expert a Question >
 
Tweet

8 Programmers are Online Right Now

Ask Your Question Now
Programming Questions Date Submitted
is there a python programming person available 3/28/2013
Write a menu-driven program that allows users do two options: Option 3/27/2013
1. Which one of the following control structures provides for 3/27/2013
JavaScript: Multiple Choice Questionnaire 3/25/2013
RA-211 3/24/2013
How do you create a searchable public Google drive folder in 3/24/2013
RA-211 3/24/2013
I am an entrepreneur with no current coding skills, but an 3/23/2013
I have base code in VBA that opens all excel files from a folder 3/23/2013
Program in C++ 3/23/2013
RSS
Next 10 >
Ask A Programmer
Type Your Programming Question Here...
characters left:

Top Programming Experts

See More Programmers

In The News

Nbc
Washington Post
New York Times
Cnn
Learn More

How It Works

  • Ask an Expert
  • Get a Professional Answer
  • Ask Followup Questions
  • 100% Satisfaction Guarantee
Learn More
close
Find Expert answers related to your question.
Sign up using email
We will never post anything without your permission.
Already have an account? Sign in

Ask a Programmer

Get a Professional Answer. 100% Satisfaction Guaranteed.
236 Programmers are Online Now
Type Your Programming Question Here...
characters left:
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.
Truste
Contact Us | Terms of Service | Privacy & Security | About Us
© 2003-2013 JustAnswer LLC