Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- int main()
- {
- char tekst[256];
- cout<<"Podaj tekst do wpisania: ";
- cin.getline(tekst,256);
- int x=strlen(tekst);
- int i;
- for(i=0;i<x;i+=2){
- cout<<tekst[i]<<tekst[i+1]<<" ";
- }
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement