#include <stdio.h>
#define SPACE ' '
void branching_if_judgement(int a, int b){
if (a > b){
printf("a(%d) is larger than b(%d)\n", a, b);
}else {[![enter image description here][1]][1]
printf("a(%d) is smaller or equal to b(%d)\n", a, b);
}
}
char branching_if_judgement_char(int a, int b){
char res;
if (a > b){
printf("a(%d) is larger than b(%d)\n", a, b);
res = 'Y';
}else {
printf("a(%d) is smaller or equal to b(%d)\n", a, b);
res = 'N';
}
return res;
}
int main() {
branching_if_judgement_char(2,3);
}
I follow the example to run the code. And, there are missing the main function in the slide. I add it
So, my question is how to combine all function in the one output, just like the slide.