/ Published in: C
A very simple calculator With four operations and posibility of repeat without exit the app.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#include <stdio.h> #include <inttypes.h> int main() { float a = 0; float b = 0; uint8_t salir = 0; uint8_t opcion = 0; while(salir == 0) { switch (opcion) { case 1: break; case 2: break; case 3: break; case 4: break; default: break; } switch (opcion) { case 1: salir = 1; break; default: salir = 0; break; } } return 0; }