C++ Programming/Exercises/Variables and types

using namespace std; int main { char name[100]; int count=0; cout<<"enter a string"; gets(name); while(name[count]!='10') { count++; } cout<<"length of the string is"<<count; }
 * 1) include
 * 2) include