12 lines
212 B
C
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;
|
|
} |