Advertisement
colemilne54

CS50 Initials

Jun 27th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <cs50.h>
  2. #include <stdio.h>
  3. #include <string.h>
  4.  
  5. int main(int argc, string argv[])
  6. {
  7. //Loops for each word
  8. for (int i = 0; i < argc; i++)
  9. {
  10. //Loops for each character
  11. for (int n = strlen(argv[i]), j = n; j < n; j++)
  12. {
  13. printf("%c", argv[i][0]);
  14. }
  15. }
  16. printf("\n");
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement