#include <stdio.h>

int add(int a);

int main() {
    int n1=5,n2=6,c;
    int x;
    scanf("%d",&x);
    
    while(1){       //infinity loop while(1){}
    
    c=add(x);       //argument passed
    printf("%d",c);
    printf("\n");
    }
    return 0;
}

int add(int a){
    //static int a;
    if(a==1){
        a=100;
    }
    else{
        a=50;
    }
    return a;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: