Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void)
- {
- //Define variables
- double x, y, prosorini;
- /*function body*/
- printf("\n Give values of x and y:");
- scanf("%lf %lf", &x, &y);
- printf("\nx = %f y = %f \n", x, y);
- prosorini = x;
- x = y;
- y = prosorini;
- printf("\n x = %f \t y = %f", y, x);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement