Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2015
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.51 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4. int main(){
  5.     char tel[50];
  6.     char end[50];
  7.     char nome[50];
  8.     printf("Digite seu nome\n");
  9.     scanf("%[^\n]s",&nome);
  10.     fflush(stdin);
  11.     printf("Digite seu endereco\n");
  12.     scanf("%[^\n]s",&end);
  13.     fflush(stdin);
  14.     printf("Digite seu telefone\n");
  15.     scanf("%[^\n]s",&tel);
  16.     fflush(stdin);
  17.     printf("seu nome eh %s\n",nome);
  18.     printf("seu endereco eh %s\n",end);
  19.     printf("seu telefone eh %s\n",tel);
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement