#include <stdio.h> #include <stdlib.h> int main() { int a=4; int b =5; float x=2.0; /* printf("%d",3/4); printf("\n ----\n"); printf("%f",3/4); printf("\n ----\n"); printf("%d",a/b); printf("\n ----\n"); */ x = a/b; printf("%f",x); printf("\n ----\n"); x = (float) b; printf("%f",x); printf("\n ----\n"); x = b /(float) a; printf("%f",x); printf("\n ----\n"); return 0; }