__________________(double,double);main(){doublex,y;scanf("%lf%lf",&x,&y);printf("%lf",max(x,y));}doublemax(doublea,doubleb){return(a>b?a:b);}
举一反三
- 在以下程序第一行的下划线处填写doublemax,使程序能正确运行。#include ____________(double,double )voidmain(){doublex,y;scanf('%lf%lf',&x,&y);printf('%lf',max(x,y));}doublemax(doublea,doubleb){return(a>b?a:b);}
- ) void main() { double x,y; scanf('%lf%lf',
- 有以下程序,请在横线处填写正确语句,使程序可正常编译运行。[br][/br] #include ; main() { double x,y,(*p)(); scanf("%lf%lf",&x,&y); p=avg; printf("%f\n",(*p)(x,y)); } double avg(double a,double b) { return((a+b)/2);}
- 若有定义语句:double x;float y;不正确的输入语句是() A: scanf(“%lf%f”,x,y); B: scanf(“%f%f”,&x,&y); C: scanf(“%lf%f”,&x,&y); D: scanf(“%f%lf”,&x,&y);
- doublex,y;scanf('%lf%lf',x,y);可以将键入的2030分别赋给x,y变量.