cpp:loops: Added for example

This commit is contained in:
Logen Kain 2017-05-13 19:29:53 -07:00
parent e0ce183060
commit dc6fbd67ed

12
cpp/loops/for.cpp Normal file
View File

@ -0,0 +1,12 @@
#include<iostream>
int main(){
int i;;
int total = 0;
for (i = 50; i < 101; i++){
total += i;
std::cout << i << " " << total << std::endl;
}
return 0;
}