kiboys

5-510寝室课后习题4.35

#include<stdio.h>
#include<math.h>
main()
{
    float a,b,c;
    printf("请输入两个整数: \n");
    scanf("%d%d",&a,&b);
    if(a>=b)
{c=a*b;}
    else
{c=a/b;}
printf("c的值为:%f\n",c);
} 

 

posted on 2019-03-31 16:45  kiboys  阅读(131)  评论(1)    收藏  举报

导航