Your physics homework can be really challenging, your deadline can be really close - feel free to use our help and get desired result.
Be sure that math assignments completed by our experts will be error-free and done according to
instructions notified in the order form.
Our experts will gladly  share  their knowledge  and help you  with programming homework. World  newest      programming tendences.
1
Get a free quote.
2
Check the website
for updates.
3
Receive your completed assignment.
Easy as ABC! Just provide us with clear instructions and wait for the completed assignment.
Order Here

ProgrammingC++ C++ Question #4052 from kuldeep

Write a program to produce design usibg nested loop
&  &  &  &  &  &  &  
    &  &  &  &  &
        &  &  &
            & 

Expert's answer

#include <iostream>
int main()
{
        int i,j;
        int n=7; // an ODD number of & in the first line
        for(i=0; i<n/2+1; i++) {
                for(j=0; j<i; j++) {
                        std::cout << "  ";
                };
                for (j=i; j<n-i-1; j++) {
                        std::cout << "& ";
                };
                std::cout << "&" << std::endl;
        }; 
};

Comments

No comments

Leave a comment

Related Questions

Link to us

Share with friends

Get homework help with AssignmentExpert:
free questions
Questions and Answers
approved by clients
I received a perfect score on this. The expert provided more than enough detail for each problem that not only helped my understanding of the concepts in the assignment but got me a solid score on the assignment itself. Can't ask for more than that!
I rate AssignmentExpert.com: 5 out of 5.
Rating: 5
Minh Quan Vo on
solving policy
solving policy
satisfaction
guarantee
paypal
satisfaction
AssignmentExpert's YouTube channel AssignmentExpert's Facebook account AssignmentExpert's Twitter account