Skip to content

Instantly share code, notes, and snippets.

@hiun
Created January 13, 2014 06:59
Show Gist options
  • Save hiun/8395794 to your computer and use it in GitHub Desktop.
Save hiun/8395794 to your computer and use it in GitHub Desktop.
simple upperer
#include <stdio.h>
int main(void)
{
char a;
printf("------------ uppercase -------------\n");
printf("------- jan 13 2014 hiun kim -------\n\n");
printf("type latter want to display uppercase : ");
scanf("%c", &a);
if( a == 's' || a == 'S' ) {
printf("\n Sejong \n\n");
}
if( a == 'e' || a == 'E' ) {
printf("\n sEjong \n\n");
}
if( a == 'j' || a == 'J' ) {
printf("\n seJong \n\n");
}
if( a == 'n' || a == 'N' ) {
printf("\n sejoNg \n\n");
}
if( a == 'g' || a == 'G' ) {
printf("\n sejonG \n\n");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment