Files
IT-Step/task1.cpp
2025-10-07 19:23:55 +03:00

21 lines
350 B
C++

#include <iostream>
#define SIZE 80
using namespace std;
int main()
{
char str[SIZE];
cout << "Input string: ";
cin.getline(str, SIZE);
int i = 0;
while (str[i] != '\0') {
if (str[i] == ' ') {
str[i] = '\t';
}
++i;
}
cout << "Modified string: " << str << endl;
system("pause");
}