#include <stdio.h>
#define MAX2NUMBER(a,b) (a) > (b) ? (a) : (b) #define MAX3NUMBER(a,b,c) MAX2NUMBER(a,b) > (c) ? MAX2NUMBER(a,b) : (c)
int main(int argc, char *argv[]) { int a,b,c; printf("please input a,b,c number:"); scanf("%d,%d,%d",&a,&b,&c); printf("the max number is : %d ",MAX3NUMBER(a,b,c)); system("pause"); return 0; }
|