Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
337 B
1
Indexable
Never
#include <stdio.h>
#include <stdlib.h>

int main()
{
   float m, n;
   printf("please enter numerator:");
   scanf("%f", &m);
   printf("pleas enter denominator:");
   scanf("%f", &n);

   if (n==0)
   {
       printf("the denominator can't be zero!");
   }
    printf("result %f/%f =%f", m, n, m/n);

    return 0;
}