Generation

generate functionSat, 12 Nov 2022

Creat I fun function Creat a x variable and set it = to 10 In the fun function make x go up 1 tune every time the function is called If x is bigger then 1 loop the fun function

int x = 10; void fun(){ x++; if (x > 10){ return; } fun(); }

Questions about programming?Chat with your personal AI assistant