19 lines
363 B
C++
19 lines
363 B
C++
#include <iostream>
|
|
using namespace std;
|
|
|
|
int main() {
|
|
float note1;
|
|
float note2;
|
|
float note3;
|
|
int const nombreDeNotes = 3;
|
|
float moyenne;
|
|
|
|
cout << "Saisir les 3 notes" << endl;
|
|
cin >> note1 >> note2 >> note3;
|
|
|
|
moyenne = (note1 + note2 + note3) / nombreDeNotes;
|
|
|
|
cout << "Le moyenne est de " << moyenne << endl;
|
|
|
|
return 0;
|
|
} |