Skip to content

Commit b513e98

Browse files
Update Prog2.c
1 parent b7f347d commit b513e98

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Aula_1/Prog2.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/* Prog2.c */
22
#include <stdio.h> /* para printf() */
33
#include <stdlib.h>/* para system() */
4+
#include <locale.h> /* para setlocale() */
45
int main()
56
{
6-
printf("Este é o número %d.\n", 5 );
7-
//printf("Este é o número %E.\n", 5000000.1 );
7+
setlocale(LC_ALL, "portuguese-brazilian"); /* Configura o idioma portugues */
8+
printf("Este é o número %d.\n", 5 );
9+
//printf("Este é o número %E.\n", 5000000.1 );
810
return 0;
911
}

0 commit comments

Comments
 (0)