Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- #include <stdlib.h>
- #include <math.h>
- int main(void){
- int a=0,b=0,c=0,i;
- srand(time(NULL));
- a=rand() %33;
- if(a==0)a++;
- b=rand() %23;
- if(b==0)b++;
- c=rand() %23;
- if(c==0)c++;
- printf("A:%d\n",a);
- printf("B:%d\n",b);
- printf("C:%d\n",c);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement