Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <time.h>
- #include <stdlib.h>
- main(){
- int letmin=47000;
- int i;
- int db=0;
- int t[10];
- srand(time(NULL));
- for(i=0;i<10;i++){
- t[i]=rand()%90001+10000;
- if(letmin>t[i])
- db++;
- printf("Az %d. generalt szamok: %d\n",i+1,t[i]);
- }
- printf("%d csalad el a letminimum alatt",db);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement