Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void sxima();
- void tetragono();
- void romvos();
- void orth_trigono();
- void isosk_trigono();
- int a;
- int main() {
- while(1) {
- scanf("%d", &a);
- }
- sxima(a);
- return 0;
- }
- void sxima () {
- if (a==1) {
- tetragono();
- }
- if (a==2) {
- romvos();
- }
- if (a==3) {
- orth_trigono();
- }
- if (a==4) {
- isosk_trigono();
- }
- }
- void tetragono() {
- printf("tetragono");
- }
- void romvos() {
- printf("romvos");
- }
- void orth_trigono() {
- printf("orthogonio trigono");
- }
- void isosk_trigono() {
- printf("isoskeles trigono");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement