#include <iostream>
using namespace std;
int main()
{
int i,j;
for (i=0;i<7;i++)
cout<<1;
}
cout<<endl;
for (j=0;j<3;j++)
for (i=0;i<7;i+=7)
cout<<"1 1" ;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
int main()
{
int i,j;
for (i=0;i<7;i++)
{
cout<<1;
}
cout<<endl;
for (j=0;j<3;j++)
{
for (i=0;i<7;i+=7)
{
cout<<"1 1" ;
cout<<endl;
}
}
for (i=0;i<7;i++)
{
cout<<1;
}
}