Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(int argc, char *argv[])
- { int y[100], p, L, vstupy, pocet;
- printf("Vloz pocet vstupu:");
- scanf("%i", &vstupy);
- if (vstupy>100)
- {
- printf("Prilis velke. Musi byt mensi nez 100.\n\n");
- system("PAUSE");
- return 0;
- }
- for (L=0; L<vstupy; L=L+1)
- {
- printf("vloz cislo s poradovym indexem %i:", L+1);
- scanf("%i", &y[L]);
- }
- printf("\n\nVstupy v opacnem poradi:\n\n");
- for (p=vstupy-1; p>=0; p=p-1)
- {
- printf("cislo s indexem %i s hodnotou %i \n", p+1, y[p]);
- }
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement