1234567891011121314
#include <string.h> #include <iostream.h> #include <conio.h> using namespace std; main () { char input1[40]; char input2[40]; cin>>input1;a cout<<"\n"; cout<<strlen(input1); getch (); return 0; }
12345678910
int main () { char input1[40]; char input2[40]; gets(input1); cout << input1 << "\n"; cout<<strlen(input1); getch (); return 0; }