Created
October 20, 2016 15:10
-
-
Save drmcarvalho/85d16b0ba056f91ea08454776079a50b to your computer and use it in GitHub Desktop.
converte de miniscula para maiuscula.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include <stdlib.h> | |
#include <windows.h> | |
#include <string.h> | |
char mudaParaMaiusculo(char); //Assinatura | |
char letra; | |
int main () | |
{ | |
printf ("\nInforme uma letra minuscula...."); | |
scanf ("%c", &letra); | |
char letraEmMaiuscula = mudaParaMaiusculo(letra); | |
printf("Letra %c em maiuscula.", letraEmMaiuscula); | |
return (0); | |
} | |
char mudaParaMaiusculo(char letra) | |
{ | |
return toupper(letra); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment