#include <iostream>
using namespace std;
// Lab06 - implementar com funções do lab04.1
class Somatorio{
public:
int C;
int soma = 0;
Somatorio (int D){
for (C = 0; C <= D; C++){
soma += C;
}
}
void setSomatorio(int soma){
soma = 0;
}
int getSomatorio(){
return soma;
}
};
int main() {
Somatorio obj(5); // obj é o objeto da classe Teste01
obj.setSomatorio(10);
cout << obj.getSomatorio() << "\n";
return 0;
}