Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Ez a program kiirja a kepernyore az "irogep" szot
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <time.h>
- int main(){
- char szo[]="aaaaaa";
- srand(time(NULL));
- while(strcmp(szo,"irogep")){
- szo[0]=97+rand()%26;
- szo[1]=97+rand()%26;
- szo[2]=97+rand()%26;
- szo[3]=97+rand()%26;
- szo[4]=97+rand()%26;
- szo[5]=97+rand()%26;
- }
- printf("%s\n",szo);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement