#include <bits/stdc++.h>using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); long long int a=2,b=3,num=2; long long int n=1; for(long long int i=1;i<=a;i++) { n=(n*a)+b; } cout<<n<<endl; return 0;}
Standard input is empty
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); long long int a=2,b=3,num=2; long long int n=1; for(long long int i=1;i<=a;i++) { n=(n*a)+b; } cout<<n<<endl; return 0; }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!