Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. //Define variables
  5. double x, y, prosorini;
  6. /*function body*/
  7. printf("\n Give values of x and y:");
  8. scanf("%lf %lf", &x, &y);
  9. printf("\nx = %f y = %f \n", x, y);
  10. prosorini = x;
  11. x = y;
  12. y = prosorini;
  13. printf("\n x = %f \t y = %f", y, x);
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement