Created
July 21, 2017 15:30
-
-
Save danielbonifacio/20aeb8fe4a1c9c5d06f560cbf93e9d28 to your computer and use it in GitHub Desktop.
This file contains 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> | |
int main (void) { | |
//Declaração da variável nome do tipo char (string, caractere) com limite de 20 caracteres | |
char nome[20]; | |
//Saudação ao usuário | |
printf("Ola! Insira seu nome, por fovor: \n"); | |
//Leitura do input do usuário | |
scanf("%s", nome); | |
//Mensagem formatada com o nome | |
printf("Seja bem vindo, %s\n", nome); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment