Answer to Question #272627 in C++ for Hamda

Question #272627

Write nested for c++ loops to produce the following output.



×××× / / / / / / / / ××××


××× / / / / / / \ \ ×××


×× / / / / \ \ \ \ ××


× / / \ \ \ \ \ \ ×


\ \ \ \ \ \ \ \

1
Expert's answer
2021-11-29T18:46:10-0500


#include <iostream>


using namespace std;


int main()
{
    for(int i=0;i<5;i++){
        for(int j=0;j<5;j++){
     //
    }
    }
    cout<<"\n×××× / / / / / / / / ××××";
    cout<<"\n××× / / / / / / \ \ ×××";
    cout<<"\n×× / / / / \ \ \ \ ××";
    cout<<"\n× / / \ \ \ \ \ \ ×";
    cout<<"\n\ \ \ \ \ \ \ \0";


    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS