Skip to content
Snippets Groups Projects
procedure_math_pratice_1.cpp 222 B
Newer Older
Jean-Baptiste Priez's avatar
Jean-Baptiste Priez committed
#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;
Jean-Baptiste Priez's avatar
Jean-Baptiste Priez committed

    return 0;