cout<<"* ** *** **** *****"<<endl;



hetahan loop eaka inverse wenna one
ohoma liyaala be man fedora walata gehilla answer eaka dennam
aah thnk u broclass demo{
public static void main(String args[]){
int i;
int x;
for(i=0;i<6;i++){
System.out.print(" ");
for(x=0;x<i;x++){
System.out.print("*");
}
}
}
}
this is java.. meeta wadaa podi code ekak liyanna puluwan.. mama movie ekak bala bala innee.. oyaa meeka hadaaganna.

hmm ayeth prashnayak... mata * ** *** **** ***** widihata C++ walin stars print karanna oone...
mama
int i;
for(i=1;i<=5;i++)
{
cout <<"*" <<" ";
}
cout<<endl;
}
kiyala dunna ethakota print wenne * * * * * kiyalane ...
ane help

#include <string>
#include <iostream>
int main(){
int i,j,input_val;
std::string _star,input,_temp;
std::cout << "type the max value that you want to reach" << std::endl << "\n" ;
std::getline(std::cin,input);
input_val = ::atoi(input.c_str()); //in here atoi means ato integer
for(i=0;i<=input_val ;i++)
{
_star= " ";
std::cout << _star;
for(j=1;j<=i;j++)
{
_temp = "*";
std::cout << _temp;
}
}
std::cout << "\n type any key to exit" << std::endl << "\n" ;
std::getline(std::cin,input);
}
Here you go buddy
next time do your home work yourself.
Notice in here you can go up to
Integer.Max value it means you can get any amount of stars

int i,j;
for(i=1;i<=5;i++)
{
for (j=0;j<i;j++)
{
cout <<"*" <<" ";
}
cout<<endl;
}

muta ooni missile ekak launch karanne nemei .. * ** *** **** ***** kiyalaa print karanna witharai....![]()

it's upto him if you type 5 then u can get 5
or if type 9 then 9 ,or if type 100 then till 100
if type 10000 then 10000![]()








hehe ok btw thnxx machn...#include <string>
#include <iostream>
int main(){
int i,j,input_val;
std::string _star,input,_temp;
std::cout << "type the max value that you want to reach" << std::endl << "\n" ;
std::getline(std::cin,input);
input_val = ::atoi(input.c_str()); //in here atoi means ato integer
for(i=0;i<=input_val ;i++)
{
_star= " ";
std::cout << _star;
for(j=1;j<=i;j++)
{
_temp = "*";
std::cout << _temp;
}
}
std::cout << "\n type any key to exit" << std::endl << "\n" ;
std::getline(std::cin,input);
}
Here you go buddy
next time do your home work yourself.
Notice in here you can go up to
Integer.Max value it means you can get any amount of stars
