Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. system("CLS");
  2. float pesq2;
  3. char pesq[30];
  4. fflush(stdin);
  5. printf("\nQual a disciplina a pesquisar:");
  6. gets(pesq);
  7. printf("\nQual o modulo a pesquisar:");
  8. scanf("%f",&pesq2);
  9.  
  10. for(i=1;i<=n;i++)
  11. {
  12. if((strcmpi(alunos[i].dis,pesq)==0)&&(alunos[i].nmod==pesq2))
  13. {
  14. printf("\nNota:%.2f",alunos[i].nota);
  15. }
  16. }
  17.  
  18. getch();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement