From 560cdea0c437a4b98a8aa387028f640be0a9343f Mon Sep 17 00:00:00 2001 From: Nishit Panchal <72164096+code3956@users.noreply.github.com> Date: Thu, 22 Oct 2020 15:10:55 +0530 Subject: [PATCH] Create gradefinder --- gradefinder | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 gradefinder diff --git a/gradefinder b/gradefinder new file mode 100644 index 0000000..059b70f --- /dev/null +++ b/gradefinder @@ -0,0 +1,94 @@ +#include +using namespace std; + +int addition (int num1, int num2); +int subtraction (int num1, int num2); +int division (int num1, int num2); +int multiplication(int num1, int num2); + + + +int main() +{ + char option; + int num1, num2, result; + + cout<<"\n\t\t\tSimple calculator"<>option; + + if(option!='e'&&option!='E') + { + cout<<"\n\t\t\tEnter First Number: "; + cin>>num1; + cout<<"\n\t\t\tEnter Second Number: "; + cin>>num2; + } + + if(option!='+'&&option!='-'&&option!='/' + &&option!='*'&&option!='e'&&option!='E') + { + cout<<"\n\t\t\tSELECT the VALID OPTION\n"; + } + else if(option=='+') + { + result=addition(num1,num2); + cout<<"\n\t\t\t"<