Advertisement
Guest User

Untitled

a guest
Jul 11th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <ctype.h>
  2. #include <stdio.h>
  3. #include <conio.h>
  4.  
  5. main (void)
  6. {
  7.      printf("Geologia");    
  8.      
  9.      char frenteDeOnda[0] = "Interface entre partículas que já estão em vibração e outras que ainda não estão";
  10.      // char hipocentro[0] = ("
  11.     char input[0];
  12.     printf("\nEscreve a materia que queres estudar: ");
  13.     gets (input);  
  14.     int i;
  15.  
  16.     char materia[0];
  17.    
  18.     for (i = 0; input[i]-1; i++)
  19.         materia[i] = toupper(input[i]);
  20.  
  21.     if (strcmp(materia,"FRENTE DE ONDA") == 0)
  22.     {
  23.        printf("%s",frenteDeOnda);
  24.        }
  25.        
  26.     getch();
  27.     return 0;  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement