fork download
  1. #include <stdio.h>
  2. #include <cs50.h>
  3. #include <string.h>
  4.  
  5.  
  6. int main(void)
  7. {
  8.  
  9.  
  10. string s = GetString();
  11. int l = strlen(s);
  12.  
  13. int char1 = s[0];
  14. int char2;
  15. for (int i = 0; i < l; i++)
  16. {
  17. if (s[i] == ' ')
  18. {
  19. char2 = s[i+1];
  20. printf("%c%c\n", char1 - 32, char2 - 32);
  21. }
  22.  
  23. }
  24.  
  25.  
  26. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:2:18: fatal error: cs50.h: No such file or directory
compilation terminated.
stdout
Standard output is empty