Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- // made by crazymax
- using namespace std;
- int main(){
- int num=0;
- cout << "Enter your number:" <<endl;
- cin >> num;
- if(num>0){
- for(int i=num;i>0;i--)
- {
- int x=num;
- while(x>0)
- {
- cout << "*";
- x--;
- }
- cout << endl;
- num--;
- }
- }
- system("PAUSE");
- }
Add Comment
Please, Sign In to add comment