Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ZNAK x20
- #include <iostream>
- using namespace std;
- string x20(char x){
- int i;
- char wynik[20];
- for(i=0;i<=19;i++)
- wynik[i]=x;
- return wynik;
- }
- int main(){
- char x;
- cin>>x;
- cout<<x20(x);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment