/******************************************************************************
Online C Compiler.
Code, Compile, Run and Debug C program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <stdio.h> // pro funkcnost printf(), prip. scanf()
#include <stdlib.h> // pro funkcnost srand() a rand()
#include <time.h> // pro funkcnost time()
int
main ()
{
int c;
printf ("Hazim kostkou...\n");
srand (time (NULL));
c = rand () % 6 + 1;
switch (c)
{
case 1:
printf ("padla jednicka");
break;
case 2:
printf ("padla dvojka");
break;
case 3:
printf ("padla trojka");
break;
case 4:
printf ("padla ctyrka");
break;
case 5:
printf ("padla petka");
break;
case 6:
printf ("padla sestka");
break;
}
return 0;
}