fork download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. char str[3][30];
  5. printf("DIGITE QUALQUER STRING: ");
  6. scanf("%s", str[0]);
  7. printf("%s\n", str[0]);
  8. printf("DIGITE OUTRA STRING: ");
  9. scanf("%s", str[1]);
  10. printf("%s\n", str[1]);
  11. printf("DIGITE MAIS OUTRA: ");
  12. scanf("%s", str[2]);
  13. printf("%s\n", str[2]);
  14. }
  15.  
  16. //https://pt.stackoverflow.com/q/235086/101
Success #stdin #stdout 0s 9432KB
stdin
teste
de
string
stdout
DIGITE QUALQUER STRING: teste
DIGITE OUTRA STRING: de
DIGITE MAIS OUTRA: string