Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @file naruto_strings_1.c
- * @brief the program scan a word to a string and printf al letters in others lines
- *
- *
- *
- * Version log
- * ------------
- * Version 1 by Naruto, 20.04.2016
- */
- #include <stdio.h>
- int main()
- {
- char word[] = {0, 0, 0};
- char letter = 0;
- printf("enter a word: ");
- scanf("%s", word);
- for (letter = 0; letter <= word[letter]; letter++) {
- printf("%c\n", word[letter]);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement