/* First */#include<stdio.h>doublemin(double x,double y ){
return( x < y ? x : y);}intmain(){
double x,y,result;scanf("%lf",&x);scanf("%lf",&y);
result =min(x,y);printf("%lf",result);return0;}
/* Second */#include<stdio.h>void chline (char ch,int i,int j){
int a,b;for( a=0; a<j ; a++){
for( b=0; b<i ; b++){
putchar(ch);}putchar('\n');}}intmain(){
char ch;int i,j;scanf("%c",&ch);scanf("%d %d",&i,&j);chline( ch, i, j);return0;}
/* Third */
和第二题一样,只是换了种表述方式而已。
/* Fourth */#include<stdio.h>doubleaverage(double x ,double y ){
double average;
x =1/x;//倒数
y =1/y;
average =(x+y)/2.0;//倒数平均值
average =1/average;//结果倒数 return average