#include<stdio.h>
#include<time.h>#include<stdlib.h>int cift(void);
int main(){srand(time(NULL));printf("%d\n",cift());return 0;}int cift(void){int y;y=6+(rand()%17);if(y%4==2)return y;else if(y%4==0)return y+2;else if(y%4==3)return y+3;else if(y%4==1)return y+1;}
Hiç yorum yok:
Yorum Gönder