#include <stdio.h>
int add();
int main() {
int n1=5,n2=6,c;
while(1){ //infinity loop while(1){}
c=add();
printf("%d",c);
printf("\n");
}
return 0;
}
int add(){
static int a;
if(a==50){
a=100;
}
else{
a=50;
}
return a;
}
#if 0
#include<stdio.h>
int fun()
{
static int count = 0; if int count = 0;
count++;
return count;
}
int main()
{
printf("%d ", fun());
printf("%d ", fun());
return 0;
}
output = 1 2; output = 1 1;
#endif
To embed this program on your website, copy the following code and paste it into your website's HTML: