Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- printf("Avtor – Klipikov A.V., student gr. PIbd-11\n");
- printf("Variant N 23\n");
- printf("Programma vvodit kolichestvo uglov i vivodit nazvanie figuri\n");
- printf("Kolichestvo uglov -->");
- int n = 0;
- scanf("%d", &n);
- if (n > 2) {
- switch(n) {
- case 3: printf("tre");
- break;
- case 4: printf("chetire");
- break;
- case 5: printf("pyati");
- break;
- case 6: printf("shesti");
- break;
- case 7: printf("semi");
- break;
- case 8: printf("vos'mi");
- break;
- default: printf("mnogo");
- break;
- }
- printf("ugolnik");
- } else
- printf("Fatal Error!");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement