/* Copyright (c) 2001-2004 by SoftIntegration, Inc. All Rights Reserved */
/* a sample program that changes the first number's
sign to the second number's */
#include <stdio.h>
#include <math.h>

int main() {
    double x,y,z;

    x = -1.563;
    y = 3.7664;
    z = copysign(x,y);
    printf("befor copysign x = %f,  y = %f \n",x,y);
    printf("after copysign x = %f,  y = %f \n",z,y);
}
