🟢 Վարժություն 15

Գրել ծրագիր, որն էկրանին կտպի մուտքագրված տողը, տեղադրելով բացատ ամեն սիմվոլից հետո։
Օրինակ՝
Մուտք - “Hello World”։ Ելք - “H e l l o W o r l d”։
#include <iostream>
int main() {
  const int MAX_SIZE = 256;
  char input[MAX_SIZE];
  std::cout << "Insert string. Max "<<  MAX_SIZE - 1 << " symbols: ";
  std::cin.getline(input, MAX_SIZE);
  std::cout << input << std::endl;
  // put your code here
}
 

Constraints

Time limit: 0.2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue