/ Published in: C
Version 1.3 of a Very Simple Calculator.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#include <stdio.h> #include <inttypes.h> float a = 0; float b = 0; void AskNumbers () { } int main() { uint8_t salir = 0; uint8_t opcion = 0; while(salir == 0) { if (opcion > 0 && opcion < 5) AskNumbers(); 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; }