#include <iostream>using namespace std;int main() {int s, k;s = 0, k = 0;while (k < 12) {s = s + 2*k;k = k + 3;}cout << s << endl;return 0;}
Standard input is empty
36
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!