Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- char texto1[30];
- char texto2[30];
- printf("Diite um texto de ate 30 caracteres: ");
- gets(texto1);
- int i = 0;
- for(i = 0; i<sizeof(texto1) && texto1[i] != '\0'; i++){
- texto2[i] = texto1[i];
- }
- printf("%s", texto2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement