0
how can i give pattern
like ***** **** *** ** *
3 Respostas
+ 1
You may use something like the below code:
int target = 5;
while (target > 0){
for(int i = target; i > 0 ; i--){
Console.Write("*");
}
Console.Write("\n\r");
target --;
}
change target and check result.
Hope this will help
+ 1
Dear Rindi,
The code that I have provided to you written in c#, based on the tag you have mentioned in your post.
0
it's c++!