Newer
Older
#include <iostream>
using namespace std;
void Blaise(int &acc, int n) {
acc = n * (n+1) / 2;
}
int main() {
Blaise(prod, 8);
cout << "Le produit retourne : " << prod << endl;
#include <iostream>
using namespace std;
void Blaise(int &acc, int n) {
acc = n * (n+1) / 2;
}
int main() {
Blaise(prod, 8);
cout << "Le produit retourne : " << prod << endl;