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
//Calculator program | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main() | |
{ | |
int menu; //Variable for the number the user inputs | |
float num1, num2, result; //Float variables for the user input and output, used floats in case the user enters e.g. 14.7 | |
printf("Enter a number from the list below\n\n"); |