Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- int main(int argc, char *argv[])
- {
- int tab[10] = {0,1,2,3,4,5,6,7,8,9};
- int temp = tab[9];
- for(int i=10-1; i>0; i++) {
- tab[i] = tab[i-1];
- }
- tab[0] = temp;
- for(int i=0; i<10; i++) {
- printf("%d", tab[i]);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement