有谁做一下啦,好久没复习了

img

建议自行百度吧。网上都有答案。给你做了两题。
如有帮助,请点击我回答右上角【采纳】按钮。
第一题:

#include <stdio.h>
int main()
{
    char a,b;
    printf("输入一个小写字母:\n");
    a=getchar();
    b=a-32;
    printf("转换后的大写字母为:%c\n",b);
    return 0;
}

第二题:

#include <stdio.h>

int main(){
float b, h, s;
printf("请输入三角形的 底 高\n");
scanf("%f %f", &b, &h);
s=0.5*b*h;
printf("三角形的面积为: %f\n", s);
return 0;
}