#include <stdio.h>
#include <stdlib.h>
#include <time.h>
/*
(0,0) (0,1) (0,2)
(1,0) (1,1) (1,2)
(2,0) (2,1) (2,2)
*/
int main(int argc, char *argv[])
{
srand(time(NULL));
int a=rand()%99+1;
int b=rand()%99+1;
int c=rand()%99+1;
printf("%d %d %d \n",a,b,c);
int max=a;
if(b>a)
{
max=b;
}
if(c>a)
{
max=c;
}
printf("%d",max);
return 0;
}
沒有留言:
張貼留言