Happy About the progress

This commit is contained in:
2026-05-28 10:16:10 +00:00
commit 79415e38db
92 changed files with 1326 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
#include <cs50.h>
#include <stdio.h>
#include <string.h>
int main (void)
{
string strings [] = {"battleship", "boot", "cannon", "iron", "thimble", "top hat"};
string s = get_string("Strings: ");
for (int i = 0; i < 6; i++)
{
if (strcmp(strings [i], == s) == 0)
{
printf("Found\n");
return 0;
}
}
printf("Not found \n");
return 1;
}