Infra_HDC icon

xy.c

Infra_HDC | PRO | 04/23/19 03:48:02 PM UTC | 0 ⭐ | 649 👁️ | Never ⏰ | []
C |

340 B

|

None

|

0 👍

/

0 👎

#include <stdio.h>
#include <math.h>
void main() {
        float x,y;
        printf("x: "); scanf("%f",&x);
        printf("y: "); scanf("%f",&y);
        if ((x < 0) && (y < 0)) {
                x = fabs(x);
                y = fabs(y);
        }
        printf("\n");
        printf("x = %f\n",x);
        printf("y = %f\n",y);
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎