#include<iostream>
#include<string>
using namespace std;
signed main() {
string str = "Hello";
for (int i = 0; i < str.length();i++){
cout << str[i] << " ";
}
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include<iostream>
#include<string>
using namespace std;
signed main() {
string str = "Hello";
for (int i = 0; i < str.length();i++){
cout << str[i] << " ";
}
return 0;
}