Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void){
- char linha[100];
- char caractere;
- int i = 0;
- printf("Digite Seu texto: ");
- do {
- caractere = getchar();
- linha[i] = caractere;
- ++i;
- } while (caractere != '\n');
- linha[i - 1] = '\0';
- printf("%s\n", linha);
- return 0;
- }
- //Sobre
- //Aula: Função getchar (#53)
- //Data: 02/01/2021
- //Referencia
- //Video: https://www.youtube.com/watch?v=ahMgR8FoH-w
Add Comment
Please, Sign In to add comment