Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main (void) {
  4. //Declaração da variável nome do tipo char (string, caractere) com limite de 20 caracteres
  5. char nome[20];
  6.  
  7. //Saudação ao usuário
  8. printf("Ola! Insira seu nome, por fovor: \n");
  9.  
  10. //Leitura do input do usuário
  11. scanf("%s", nome);
  12.  
  13. //Mensagem formatada com o nome
  14. printf("Seja bem vindo, %s\n", nome);
  15.  
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement