- 4

Write a C++ code that can draw the following pattern 100 times.

27th Feb 2021, 2:56 PM
ريماس علي
ريماس علي - avatar
14 Respuestas
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 👍
27th Feb 2021, 3:16 PM
**🇦🇪|🇦🇪**
**🇦🇪|🇦🇪** - avatar
+ 5
ريماس علي Hidden Pattern?
27th Feb 2021, 3:05 PM
A͢J
A͢J - avatar
27th Feb 2021, 3:16 PM
A͢J
A͢J - avatar
+ 2
ريماس علي 100 times means pattern should print 100 times?
27th Feb 2021, 4:05 PM
A͢J
A͢J - avatar
+ 1
ريماس علي Did you try? Show your attempts.
27th Feb 2021, 3:10 PM
A͢J
A͢J - avatar
+ 1
Yes, I will try to complete it
27th Feb 2021, 3:15 PM
ريماس علي
ريماس علي - avatar
+ 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; }
27th Feb 2021, 5:17 PM
visph
visph - avatar
0
@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @
27th Feb 2021, 3:09 PM
ريماس علي
ريماس علي - avatar
0
No, I have not tried, it is difficult
27th Feb 2021, 3:12 PM
ريماس علي
ريماس علي - avatar
0
if I write for you half of the code as guiding can you complete it ?
27th Feb 2021, 3:14 PM
**🇦🇪|🇦🇪**
**🇦🇪|🇦🇪** - avatar
0
I am trying with the code, but it gets more than 100
27th Feb 2021, 3:39 PM
ريماس علي
ريماس علي - avatar
0
I did it, is it true?
27th Feb 2021, 4:06 PM
ريماس علي
ريماس علي - avatar
0
#include <iostream> using namespace std; int main(){ for(int i=1; i<=100; i++){ cout<<"@: "<<i<<endl; } return 0; }
27th Feb 2021, 4:06 PM
ريماس علي
ريماس علي - avatar
0
Output @ 100
27th Feb 2021, 4:06 PM
ريماس علي
ريماس علي - avatar