#include <iostream>

using namespace std;

int main() {
    //char arr[30]{"hi im adarsh"};
    char arr[30]{};
    //cin >> arr;
    cin.getline(arr,10,'\n');
    cout << arr << endl;
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: