-
-
Save amankharwal/5cff6c6ab6ee12ca5ba7627ce9ec7bdb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
# include <string.h> | |
using namespace std; | |
int main(){ | |
string word = "thecleverprogrammer"; | |
int i = 0; | |
while (word[i]){ | |
i++; | |
} | |
cout<<i; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment