-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename paradigma_7.3_switch_sel_128.cpp to paradigma_7.3_s…
…witch1_sel_128.c
- Loading branch information
Showing
2 changed files
with
43 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#include<stdio.h> | ||
#include<stdlib.h> | ||
#include<conio.h> | ||
|
||
char op; | ||
int a,b,c; | ||
|
||
main(void) | ||
{ | ||
system("chcp 1253>nul"); | ||
printf("1.đńďóčĺóç\n2.áöáéńĺóç\n3.đďëëáđëáóéáóěďň\n4.äéáéńĺóç\n"); | ||
printf("\näéáëĺîĺ đńáîç:\t"); | ||
scanf("%c",&op); | ||
scanf("%d %d",&a,&b); | ||
|
||
switch(op) | ||
|
||
{ | ||
case'+':c=a+b; | ||
printf("đńďóčĺóç ĺéíáé %d",a+b); | ||
break; | ||
case '-': | ||
printf("áöáéńĺóç ĺéíáé %d",a-b); | ||
break; | ||
case '*': | ||
printf("đďëëáđëáóéáóěďň ĺéíáé %d",a*b); | ||
break; | ||
case '/': | ||
printf("äéáéńĺóç ĺéíáé %d",a/b); | ||
break; | ||
default: | ||
printf("ç ĺđéëďăç äĺí őđďóôçńéćĺôáé\n"); | ||
break; | ||
} | ||
getch(); | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.