#include<stdio.h>
int main(void){
int a,b;
float c;
scant("%d%c%f",&a,&b,&c);
printf("%f\n",(a+c));
}
#include<stdio.h>
int main(void){
int a,b;
float c;
scant("%d%c%f",&a,&b,&c);
printf("%f\n",(a+c));
}
不是scant,是scanf,函数名都写错啦
a,b都是整型,都要用%d,不能用%c
最后要return 0
#include<stdio.h>
int main(void){
int a, b;
float c;
scanf("%d%d%f", &a, &b, &c);
printf("%f\n", (a + c));
return 0;
}