#include <stdio.h> int main() { // Manual conversion: int to float float sum = (float) 5 / 2; printf("%f", sum); return 0; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter