I wrote a program to show the capital letter of a given small letter, but in the output console it's showing an error.
#include <stdio.h>
int main
{
char small_letter, capital_letter;
printf("Please enter a small letter: ");
small_letter = getchar();
capital_letter = small_letter - 32;
printf("The capital letter is: %c\n", capital_letter);
return 0;
}