Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #using System;
- #using System.Console;
- static void main(string[] args)
- {
- int a = Int32.Parse(args[0]);
- int i = 0;
- bool asc = true;
- while(true)
- {
- for(int i1 = 0; i1 != i; i1++)
- {
- Write("*");
- }
- Write("\n");
- if(i==a){asc = false;}
- if(asc)
- {
- i++
- }else
- {
- i--
- }
- if(i==0){break;}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement