Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- 1- сброс
- 2 - сложить
- 3 - вычесть
- 4 - умножить
- 5 - делить
- 6 - ctg
- 7 - |x|
- 8 - x^3
- */
- #include <stdio.h>
- #include "math.h"
- int main (void) {
- int oper;
- float a, res;
- printf("1st Number: ");
- scanf("%f", &a);
- printf("\nOperation: ");
- scanf("%i", &oper);
- while(true) {
- printf("\nNumber: ");
- switch(oper) {
- case 1: res=0; break;
- case 2:
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:
- case 8:
- case 9: return 0;
- }
- }
- }
Add Comment
Please, Sign In to add comment