Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int zadanie;
- do
- {
- printf("0.Wyjscie\n1.Zadanie 1\nPodaj Liczbe: ");
- scanf("%d",&zadanie);
- switch(zadanie)
- {
- case 0:
- break;
- case 1:
- {
- int tab[100];
- for(int i;i<100;i++)
- {
- if(i%5==0) tab[i]=0;
- else tab[i]=rand()%1000;
- printf("%d,",tab[i]);
- }
- }
- break;
- default:
- printf("Zly numer Podaj nowy");
- break;
- }
- }while(zadanie!=0);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement