rygyfygy

ZNAK x20

Oct 30th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. //ZNAK x20
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. string x20(char x){
  6. int i;
  7. char wynik[20];
  8.  
  9. for(i=0;i<=19;i++)
  10. wynik[i]=x;
  11. return wynik;
  12. }
  13.  
  14. int main(){
  15.  
  16. char x;
  17. cin>>x;
  18. cout<<x20(x);
  19.  
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment