Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- int main()
- {
- int i=0;
- char iNG[20][500], pT[20][500];
- char idi;
- printf("Insira idioma [P]T/[I]NG \n");
- scanf("%c",&idi);
- for(i=0;i<20;i++){
- if(idi=='P'){
- printf("Insira as palavras: \n");
- scanf("%s",pT[i]);
- fgets(pT[i], 500 , stdin);
- if (strcmp(pT[i],"Verde") == 0)
- printf(" Green(I) ");
- else if (strcmp(pT[i],"Branco") == 0)
- printf(" White(I) ");
- }
- else{
- printf("Insert words: \n");
- scanf("%s",iNG[i]);
- if (strcmp(pT[i],"Black") == 0)
- printf(" Preto(P) ");
- else if (strcmp(pT[i],"Gray") == 0)
- printf(" Cinzento(P) ");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement