Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
404 B
3
Indexable
Never


void function1(){
    int value,a,b;
    while(condition){
        value=a*b;
    }

}

void function2(){
    int value,a,b;
    while(1){

        value=a+b;
    }
}


//merge two functions 
void function3(int function){
    int value,a,b
    while(1){
        if(function==1){
            value=a*b;
        }
        else{
            value=a+b;
        }


    }
}