|
#include <stdio.h>
int main(void)
{
printf("%d\n", 22/7);
printf("%d\n", 7/22);
printf("%d\n", 22%7);
printf("%f\n", 22.0/5.0);
printf("%f\n", 22.0%5.0);
return 0;
}
22/7
7/22
22%7
22.0/5.0
22.0%5.0
각각 수식 계산 결과를 구하려구하는데요
계속 오류가 떠요 ㅠㅠ
왜그러죠?ㅠ 그리고 아래 두가지 float로 정의하는 아래 두가지 왜 그 값이 나오는지 설명좀 부탁드려여 ㅠㅠ
|