Bug fixing
This commit is contained in:
+5
-5
@@ -1,12 +1,12 @@
|
||||
#include <iostream>
|
||||
|
||||
|
||||
int main() {
|
||||
|
||||
auto max_value = 100;
|
||||
int main()
|
||||
{
|
||||
auto the_max_value = 100;
|
||||
int total = 0;
|
||||
for (int i = 0; i < max_value; ++i) {
|
||||
total += i;
|
||||
for (int v = 0; v < the_max_value; ++v) {
|
||||
total += v;
|
||||
}
|
||||
std::cout << "Total: " << total << std::endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user