W3Schools Tryit Editor

PHOTO EMBED

Thu Feb 23 2023 17:51:43 GMT+0000 (Coordinated Universal Time)

Saved by @vishpriya412 #undefined

#include <stdio.h>
​
int main() {
  int num1 = 5;
  int num2 = 2;
  float sum = (float) num1 / num2;
​
  printf("%.1f", sum);
  return 0;
}
content_copyCOPY

https://www.w3schools.com/c/tryc.php?filename