#include <stdio.h>

int main() {
    int sum;
    float x = 1.3, y=1.8;
    sum = x+y;
    printf("자동 변환한 sum= %d \n", sum);
    sum = (int)x + (int)y;
    printf("cast 사용한 형변환 sum=%d \n", sum);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: