added ws202425 courses
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// Prints string char by char, 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");
|
||||
}
|
||||
Reference in New Issue
Block a user