Skip to content

Instantly share code, notes, and snippets.

@arrbxr
Created April 19, 2018 02:51
Show Gist options
  • Select an option

  • Save arrbxr/9b3a34de06e654f54383a2f0eb71bd54 to your computer and use it in GitHub Desktop.

Select an option

Save arrbxr/9b3a34de06e654f54383a2f0eb71bd54 to your computer and use it in GitHub Desktop.
stack operation created by arrbxr - https://repl.it/@arrbxr/stack-operation
#include <iostream>
using namespace std;
void abc();
int main() {
std::cout << "Hello World!\n";
abc();
return 0;
}
void abc(){
int a;
static int s = 3;
a = ++s;
cout<<a<<" "<<s<<"\n";
if(a<=6)
abc();
cout<<a<<" "<<s<<"\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment