Previous Next
0 / 23
Module DEMO-32-108DEMO-C-32

Count Uppercase

DEMO-C-32 โ€ข Programming in C

Browser-only practice

Problem Statement

Write a program that iterates through a string and counts the total number of uppercase alphabetic characters.

Constraints

Max string length: 100

Input Format

Input:

String S

Output Format

Output:

Count

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
Apple.3
1
There are 1 uppercase letters in Apple.3.
Sample #2
Public sample
Semaphore#4
1
There are 1 uppercase letters in Semaphore#4.
Sample #3
Public sample
Mouse?9
1
There are 1 uppercase letters in Mouse?9.
Sample #4
Public sample
Agile.9
1
There are 1 uppercase letters in Agile.9.

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings