Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- //////////////////////////////////////////////////////////
- void f1(int n2)
- {
- int n;
- for(int a = 1; a <= n2; a++)
- {
- if (n > 7)
- {
- n = 1;
- printf("\n");
- }
- printf("%2d ", a);
- n++;
- }
- }
- /////////////////////////////////////////////////////////////
- void f2(int n)
- {
- int F = 0;
- switch (n)
- {
- case 2: F = 1;
- printf("Февраль : \n");
- f1(28);
- break;
- case 3: F ++;
- printf( "Март :\n");
- f1(31);
- break;
- case 4: F += 1;
- printf( "Апрель :\n");
- f1(30);
- break;
- }
- if(F) printf("\n- - - - - - - \nf2 is worked\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement