feat: Initial commit
This commit is contained in:
12
Laboratorio 1/TestAmbiente.c
Normal file
12
Laboratorio 1/TestAmbiente.c
Normal file
@@ -0,0 +1,12 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user