Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #include <cs50.h>
  2. #include <stdio.h>
  3. #include <string.h>
  4.  
  5. int main ()
  6. {
  7.    
  8.     string s = GetString();
  9.     int n;
  10.         for(n = 0;n <strlen(s);n++)
  11.         {
  12.             if(s[n] != ' ')
  13.             {
  14.                 break;
  15.             }
  16.             else
  17.             {
  18.             }
  19.        
  20.         }
  21.     printf("%c\n",s[n]);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement