cs50/src1/calculator6.c

17 lines
225 B
C

// Uses %f
#include <cs50.h>
#include <stdio.h>
int main(void)
{
// Prompt user for x
int x = get_int("x: ");
// Prompt user for y
int y = get_int("y: ");
// Divide x by y
printf("%f\n", x / y);
}