输出两个整数的最大值

来源:互联网 发布:python 不显示warning 编辑:程序博客网 时间:2024/05/17 04:20
#include <stdio.h>#include <stdlib.h>int main(){    int a,b,max;    printf("Input a,b:");    scanf("%d,%d",&a,&b);    if(a>b)  max=a;    if(a<=b)  max=b;    printf("max=%d\n",max);}

这里写图片描述

原创粉丝点击