Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cs50.h>
- #include <stdio.h>
- #include <string.h>
- int main ()
- {
- string s = GetString();
- int n;
- for(n = 0;n <strlen(s);n++)
- {
- if(s[n] != ' ')
- {
- break;
- }
- else
- {
- }
- }
- printf("%c\n",s[n]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement