summaryrefslogtreecommitdiff
path: root/wk4/lect/copy.c
blob: 9a61c0497dc344a5ff5926b0b981f9fd5907713a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <cs50.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
    string s = get_string("s: ");

    string t = s;

    t[0] = toupper(t[0]);

    printf("%s\n", s);
    printf("%s\n", t);
}