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