Something went wrong. Try again.
My course files for the Online Computer Science degree
Something went wrong. Try again.
1234567891011121314151617// Prints string char by char, one per line, using strlen
#include <cs50.h>#include <stdio.h>#include <string.h>
int main(void){ string s = get_string("Input: "); printf("Output: "); for (int i = 0; i < strlen(s); i++) { printf("%c", s[i]); } printf("\n");}