#include <stdio.h>
int main (void)
{
int i1, i2;
printf ("Enter two numbers: ");
scanf ("%i%i", &i1, &i2);
if (i2 == 0)
printf ("the second number cannot be zero.");
else
printf ("%i / %i = %.3f /n", i1, i2, (float) i1 / i2);
return 0;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266690.html