Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.64 KB | None | 0 0
  1. void draw(){
  2.     printf("    %s | %d     \n",mce[c].name,r);{
  3.         for ( d; d <= 1+j * 5; d++ )
  4.         {
  5.             printf(" ");
  6.         }
  7.         for ( d = 1; d <= mce[c].dz; d++ )
  8.         {
  9.             printf("%2d", d );
  10.  
  11.             if ( ( d + j ) % 7 > 0 )
  12.                 printf("   ");
  13.             else
  14.                 printf("\n " );
  15.         }
  16.         printf("\n");
  17.     }
  18. }
  19.  
  20. void doItAgain(){
  21.     printf("Czy chcesz podać inną datę? (t)ak / nie\n");
  22.     char again;
  23.     scanf(" %c", &again);
  24.  
  25.     if (again == 't'){
  26.         printf("poszło tak\n");
  27.         main();
  28.     }
  29.     else{
  30.         exit(0);
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement