added ws202425 courses
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// Uppercases string using ctype library
|
||||
|
||||
#include <cs50.h>
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
string s = get_string("Before: ");
|
||||
printf("After: ");
|
||||
for (int i = 0, n = strlen(s); i < n; i++)
|
||||
{
|
||||
printf("%c", toupper(s[i]));
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
Reference in New Issue
Block a user