0
make this design using for loop
7777777 7 7 7 7 7 7
3 Answers
+ 5
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
for (int i = 0; i < 7; i++){
for (int j = 0; j < 7; j++){
if (i == 0)
cout << "7";
if(j==6 && i !=0)
cout<<setw(7-i)<<"7";
}
cout<<endl;
}
return 0;
}
0
cool
0
can you explain your code