#include<iostream> using namespace std; int fun() { int x=0; x++; return x; } int main() { for(int i=0;i<10;i++) { cout<<fun()<<"\t"; } cout<<endl; return 0; }
To embed this project on your website, copy the following code and paste it into your website's HTML: