Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Untitled
SUBMITTED BY:
Guest
DATE:
Dec. 8, 2013, 9:22 p.m.
FORMAT:
Text only
SIZE:
535 Bytes
Raw
Download
Tweet
HITS:
9707
Go to comments
Report
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
void main()
{
int i=1,j=1,Visina;
char Znak;
system("cls");
cout<<"Unesite Visinu:\n";
cin>>Visina;
cout<<"Unesite znak za oblik:\n";
cin>>Znak;
system("cls");
for (i=0;i<Visina;i++)
{
for(int z=0;z<i;z++)
{
cout<<" ";
}
for (j=1;j<=(Visina-i);j++)
{
cout<<Znak<<" ";
}
cout<<endl;
}
system("pause>null");
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus