Guest User

Untitled

a guest
Apr 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void zmena (int x,int y)
  5. {
  6. int a=0,b=0,pom=0;
  7. pom = a;
  8. a = b;
  9. b = pom;
  10.  
  11. printf("%d %d",a,b);
  12. }
  13. main()
  14. {
  15. int x=0,y=0;
  16. printf("Zadaj prve cislo\n");
  17. scanf("\n%d",&x);
  18.  
  19. printf("Zadaj druhe cislo\n");
  20. scanf("\n%d",&y);
  21.  
  22. zmena(x,y);
  23.  
  24. }
Add Comment
Please, Sign In to add comment