Competitive Programming Solutions

GitHub
back to dashboard

N. Char

Codeforces - Sheet #1 (Data type - Conditions) · limit: 0.25s · memory: 64MB · view on codeforces

input

a

output

A
Main.java
static void solve() {

        // Write your solution here
        char c = in.next().charAt(0);
        if (c >= 'a' && c <= 'z') {
            out.print((char) (c - 32));
        } else {
            out.print((char) (c + 32));
        }

    }