#include <iostream> #include <cmath> using namespace std; int main() { double chiffre1, chiffre2, chiffre3, resultat; cout << "Entrez 3 chiffre: "; cin >> chiffre1 >> chiffre2 >> chiffre3; resultat = (chiffre1 + chiffre2 + chiffre3) / 3; cout << "Le resultat est " << resultat << endl; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter