Creating Simple Calculator in C++ | Using if and else if

how to create simple calculator in c++ by using simple programming,or using if and else if combination in c++ programming

Creating Simple Calculator in C++ | Using if and else if
Creating Simple Calculator in C++ | Using if and else if
Hi Friends! my name is ABID ALI owner and admin @Onlinebloggertricks.com, i am here with a programming post in which we shall learn about two things
1st one is Creating Simple Calculator in C++
so follow is the code given to convert temperature just do practice and learn programming 
2nd one is Using if and else if 
its code is also given below so do same and practice in case of any confusion and misunderstanding of any thing then please send us feedback at contact us forum or use our comment forum to leave your comments 
thanks for reading us 
Creating Simple Calculator in C++ | Using if and else if
Creating Simple Calculator in C++ | Using if and else if


#include<iostream>
#include<conio.h>
using namespace std;
int main ()
{
float num1, num2;
char choice;
cout<<"Enter Value 1=";
cin>>num1;
cout<<"Enter Value 2=";
cin>>num2;
cout<<"Enter + for Addition\nEnter - for Substraction\nEnter * for Multiplication\nEnter / for Division";
cin>>choice;
if (choice=='+')
cout<<"Addition"<<num1+num2;
else if(choice=='-')
cout<<"Substraction"<<num1-num2;
else if(choice=='*')
cout<<"Substraction"<<num1*num2;
else if(choice=='/')
cout<<"Division"<<num1/num2;
else
cout<<"Wrong Number";
getch();
return 0;
}

COMMENTS

Name

Blogger-Templates,1,Blogging,4,C++,11,Facebook,1,Free-Premium,1,Freebies,4,Google,1,Hack-Facebook,1,Programming,11,SEO,3,Social-Media,1,Softwares,3,Widgets,1,
ltr
item
Online Blogger Tricks | A2Z Art of Blogging: Creating Simple Calculator in C++ | Using if and else if
Creating Simple Calculator in C++ | Using if and else if
how to create simple calculator in c++ by using simple programming,or using if and else if combination in c++ programming
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu488DwngqSAYrzxknrqTPcdVZX0cwjGUR-5jzzmJHL_3PqDm14wxbi1LsWqTugJQP0EtCRCtJ6AQETXjfIft0sVnNfRoDzqXkFU0YqemXq-qCOJu9d5QqYGC6DNkJDLkObPGiv_bnT58/s640/maxresdefault.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu488DwngqSAYrzxknrqTPcdVZX0cwjGUR-5jzzmJHL_3PqDm14wxbi1LsWqTugJQP0EtCRCtJ6AQETXjfIft0sVnNfRoDzqXkFU0YqemXq-qCOJu9d5QqYGC6DNkJDLkObPGiv_bnT58/s72-c/maxresdefault.jpg
Online Blogger Tricks | A2Z Art of Blogging
https://a4abidaziz.blogspot.com/2016/03/creating-simple-calculator-in-c-using.html
https://a4abidaziz.blogspot.com/
http://a4abidaziz.blogspot.com/
http://a4abidaziz.blogspot.com/2016/03/creating-simple-calculator-in-c-using.html
true
1578912806520322323
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy