Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement