/* ex0504.c */ #include <stdio.h> int main() { printf("%d/%d=%d\n",2,5,2/5); return(0); }
output:
2/5=0 Process returned 0 (0x0) execution time : 0.065 s Press any key to continue.
/* ex0504.c */ #include <stdio.h> int main() { printf("%1.1f/%1.1f=%1.1f\n",2.0,5.0,(2.0/5.0)); return(0); }
2.0/5.0=0.4 Process returned 0 (0x0) execution time : 0.087 s Press any key to continue.
Tidak ada komentar:
Posting Komentar