49 234
Assignments Done
97,4%
Successfully Done
In May 2017
Your physics homework can be a real challenge, and the due date can be really close — feel free to use our assistance and get the desired result.
Be sure that math assignments completed by our experts will be error-free and done according to your instructions specified in the submitted order form.
Our experts will gladly share their knowledge and help you with programming homework. Keep up with the world’s newest programming trends.

Answer on C++ Question for kuldeep

Question #4052
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 << " quot;;
};
std::cout << "&" << std::endl;
};
};
tip Your question requires fast and guaranteed response?   Please   SUBMIT IT

Comments

No comments. Be first!

Leave a comment

Ask Your question