Files
Laboratori-TDP/Laboratorio 1/TestAmbiente.c
2024-03-22 17:14:57 +01:00

12 lines
212 B
C

#include <stdio.h>
int main(void)
{
int x, y;
float z;
printf("Insert an integer number:");
scanf("%d", &x);
y = 3;
z = (float)(x) / y;
printf("%d/%d=%.3f\n", x, y, z);
return 0;
}