0
Anyone who can help me create a code to make shapes using "for loop" plsss Im just a beginner
like this * ** *** **** ***** and ***** ***** ***** ***** *****
8 Antworten
+ 3
Try this
# include < iostream.h >
using namespace std;
int main()
{
int i,j;
for ( i=1; i<=5; i++)
{
cout << " \n ";
for ( j=1; j<=i; j++ )
{
cout << " * ";
}
}
return 0;
}
OUTPUT
*
**
***
****
*****
+ 1
if you mean
*
**
***
**
*
simply make a function that counts up the amount then when it reaches a certain point it counts down
0
Thankyou guysss
0
I got output for that
0
check at the code play ground I have posted this program *pattern
- 1
Guys pls help me. if you'll help me thats really appreciated. All of the codes i tried were all infinite 😢😢😢😢
- 1
Refer to Class 11 book by Sumita Arora on C++
- 1
Its not working😢😢😢😢😢