Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- #include "header.h"
- int main ()
- {
- printf ("Choose problem(0 to exit):\n");
- printf ("1. problem 1 variant 18\n");
- printf ("2. problem 2 variant 18\n");
- char c = '*';
- while (c<='0' || c>='3')
- {
- c = getch ();
- if (c=='1') problem1();
- else
- if (c=='2') problem2();
- else
- if (c=='0')
- {
- printf ("Successfully exit\n");
- break;
- }
- else
- printf ("Error, try again\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement