Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main () {
- int nAlunos,i;
- float nota;
- cout << "Quantos alunos ?" << endl;
- cin >> nAlunos;
- i = 0;
- while(i<nAlunos)
- {
- cout << "Nota do aluno " << i+1 << endl;
- cin >> nota;
- if (nota > 60){
- cout << "Passou !" << endl;
- }
- else {
- cout << "Nao passou !" << endl;
- }
- i++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement