Category Archives: C++

C++ vs Java

C++ and Java both support Object-oriented programming and has an approach for statically typed programming too. Though there are many similarities between Java and C++, still contain many distinctions too. There was a time when C++ and Java were fighting head to head for the number 1 programming language, because of the Object-Oriented programming support.… Read More »

Write a C++ Program to perform arithmetic operations using switch case

In this program, we will use the C++ switch case to perform for arithmetic operations such as Addition, Subtraction, Multiplication and Division C++ program to perform arithmetic operations using switch case #include<iostream.h> #include<conio.h> void main() { clrscr(); float num_1,num_2; int operation; cout<<“What Arithmetic Operation You want to perform:\n”; cout<<“Press 1 for Addition \n” ; cout<<“Press… Read More »