#include <stdio.h>
int main(void) {
float a = 3.1;
float b = 3.9;
printf("%d\n", (int)a);
printf("%d\n", (int)b);
return 0;
}
結果
3
3
Go to list of users who liked
More than 5 years have passed since last update.
#include <stdio.h>
int main(void) {
float a = 3.1;
float b = 3.9;
printf("%d\n", (int)a);
printf("%d\n", (int)b);
return 0;
}
3
3
Register as a new user and use Qiita more conveniently
Go to list of users who liked