Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- system("CLS");
- float pesq2;
- char pesq[30];
- fflush(stdin);
- printf("\nQual a disciplina a pesquisar:");
- gets(pesq);
- printf("\nQual o modulo a pesquisar:");
- scanf("%f",&pesq2);
- for(i=1;i<=n;i++)
- {
- if((strcmpi(alunos[i].dis,pesq)==0)&&(alunos[i].nmod==pesq2))
- {
- printf("\nNota:%.2f",alunos[i].nota);
- }
- }
- getch();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement