#include <stdio.h>

void main() {
    float a = 3/2;     //a=1.0   (1.5가 아님!!)
    float b = 3.0 / 2; //b=1.5
    int c = (int) b;   // c=1
    printf("%7.3f %7.3f %3d\n", a, b, c); //1.000 1.500 1
}

Embed on website

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