- 4
Write a C++ code that can draw the following pattern 100 times.
14 Respostas
0
#include<iostream>
using namespace std;
int main()
{
		int i, j, pt;
		cout<<"\n Enter Number of Rows : ";
		cin>>pt;
		cout<<"\n";
		for(i=0; i<pt; i++)
		{
				for(j=pt; j>i; j--)
				{
				 cout<<" @ ";
				}
				cout<<"\n";
		}
		return 0;
}
try to complete it 👍
+ 5
ريماس علي 
Hidden Pattern?
+ 4
ريماس علي 
Make it for 100 times
https://code.sololearn.com/cCtpiw4d9He3/?ref=app
+ 2
ريماس علي 
100 times means pattern should print 100 times?
+ 1
ريماس علي 
Did you try? Show your attempts.
+ 1
Yes, I will try to complete it
+ 1
I Am AJ ! provided you the complete code for pattern...
that's the pattern you must print 100 times, not only one char ;)
#include <iostream>
using namespace std;
int main(){
   for(int i=1; i<=100; i++){
       /* print pattern */
   }
   return 0;
}
0
@ @ @ @ @ @
@ @ @ @
@ @ @
@ @
@
@
@ @
@ @ @
@ @ @ @
@ @ @ @ @
0
No, I have not tried, it is difficult
0
if I write for you half of the code as guiding can you complete it ?
0
I am trying with the code, but it gets more than 100
0
I did it, is it true?
0
#include <iostream>
using namespace std;
int main(){
   for(int i=1; i<=100; i++){
    
      cout<<"@: "<<i<<endl;
   }
   return 0;
}
0
Output @ 100



