online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> using namespace std; int main() { int c; cout <<"Проверить, как выбор пути решения влияет на результат:"; cin >> c; switch ( c ) { case 2: cout << "1/3+1/8+1/15+1/24+...+1/((n+1)^2-1)"; break; case 3: cout << "(1+1/3)(1+1/8)(1+1/15)...(1+1/(n(n+2))"; break; case 4: cout << "1/3+1/15+1/35+...+1/((2n-1)(2n+1))"; break; case 5: cout << "(1-1/4)(1-1/9)(1-1/16)...(1-1/(n^2))"; break; case 6: cout << "1-1/3-1/15-1/35-...-1/((2n-1)(2n+1))"; break; case 7: cout << "1+2/2+3/4+4/8+5/16+///+n/(2^(n-1))"; break; case 8: cout << "1+1/2+1/4+1/8+...+1/(2^n)"; break; case 9: cout << "1-1/3+1/9-1/27+...+(-1/3)^n"; break; case 10: cout << "1-1/2-1/4-1/8-...-1/(2^n))"; break; case 11: cout << "1-1/3-1/8-1/15-...-1/((n+1)^2-1)"; break; case 12: cout << "1+1/3+1/9+1/27+...+1/(3^n)"; break; case 13: cout << "3/4+5/36+...+(2n+1)/((n(n+1))^2)"; break; case 14: cout << "1/15+1/35+...+1/((2n+1)(2n+3))"; break; case 15: cout << "1+3/2+7/4+15/8+...+(2^n-1)/2^(n-1)"; break; default: cout << "Обратитесь к автору проекта"; } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue