0

how can i give pattern

like ***** **** *** ** *

29th Dec 2016, 1:55 PM
Rindi Hasan
Rindi Hasan - avatar
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
29th Dec 2016, 2:08 PM
Ahmad EL Masri
Ahmad EL Masri - avatar
+ 1
Dear Rindi, The code that I have provided to you written in c#, based on the tag you have mentioned in your post.
30th Dec 2016, 10:59 AM
Ahmad EL Masri
Ahmad EL Masri - avatar
0
it's c++!
30th Dec 2016, 9:27 AM
Rindi Hasan
Rindi Hasan - avatar