My issue
what is wrong in this code
My code
#include <iostream>
using namespace std;
int main() {
string one = "Coding";
string two = "on";
string three = "CodeChef";
// Write your code below
string sentence="Coding on CodeChef";
cout<<one<<"-"<<one.length()<<endl;
cout<<two<<"-"<<two.length()<<endl;
cout<<three<<"-"<<three.length()<<endl;
cout<<sentence<<"-"<<sentence.length()<<endl;
return 0;
}
Learning course: Learn Programming and Problem Solving using C++
Problem Link: https://www.codechef.com/learn/course/sit-cpp-fall/PROGCC02/problems/LCPPAS40