Answers for "how to get out of function in c"

C
0

how to get out of function in c

void limit(int stop){
	int x;
  	for(x=0;x<=100;x=x+1){
    	printf("%d ",x);
      	if(x==stop){
        	puts("You won!");
        	return;
        }
    }
	puts("I won!");
}
Posted by: Guest on September-24-2021

Code answers related to "how to get out of function in c"

Code answers related to "C"

Browse Popular Code Answers by Language