Write a program to produce design usibg nested loop& & & & & & &
& & & & &
& & &
&
1
Expert's answer
2011-09-01T09:28:22-0400
#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; }; };
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment