All pastes #563707 Raw Edit

Untitled

public text v1 · immutable
·published 2007-06-13 08:13 UTC
rendered paste body
#include <iostream>
using namespace std;

void risba(int m)
{
     int a=1;
     int spr=m;
     int temp=m;
     cout << a;
     for(int i=0; i<m; i++)
     {
             cout << "$";
     }
     a++;
     temp--;
     cout << m << endl;
     for(int j=0; j<m-2; j++)
     {
             cout << a; 
             for(int z=0; z<m; z++)
             { 
                     cout << "*";             
             }
             cout << temp << endl;
             temp--;
             a++;
     }
     cout << a;
     for(int i=0; i<m; i++)
     {
             cout << "$";
     }
     cout << temp << endl;


     return;
}

int main() {
    int abc;
    cout << "Vnesi st.: ";
    cin >> abc;
    risba(abc);
    system ("PAUSE");
    return 0;
}