Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void zmena (int x,int y)
- {
- int a=0,b=0,pom=0;
- pom = a;
- a = b;
- b = pom;
- printf("%d %d",a,b);
- }
- main()
- {
- int x=0,y=0;
- printf("Zadaj prve cislo\n");
- scanf("\n%d",&x);
- printf("Zadaj druhe cislo\n");
- scanf("\n%d",&y);
- zmena(x,y);
- }
Add Comment
Please, Sign In to add comment