Untitled


SUBMITTED BY: Guest

DATE: Dec. 8, 2013, 9:22 p.m.

FORMAT: Text only

SIZE: 535 Bytes

HITS: 9707

  1. #include <iostream>
  2. #include <cmath>
  3. #include <iomanip>
  4. using namespace std;
  5. void main()
  6. {
  7. int i=1,j=1,Visina;
  8. char Znak;
  9. system("cls");
  10. cout<<"Unesite Visinu:\n";
  11. cin>>Visina;
  12. cout<<"Unesite znak za oblik:\n";
  13. cin>>Znak;
  14. system("cls");
  15. for (i=0;i<Visina;i++)
  16. {
  17. for(int z=0;z<i;z++)
  18. {
  19. cout<<" ";
  20. }
  21. for (j=1;j<=(Visina-i);j++)
  22. {
  23. cout<<Znak<<" ";
  24. }
  25. cout<<endl;
  26. }
  27. system("pause>null");
  28. }

comments powered by Disqus