Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
using namespace std;
int main() {
float num1, num2;
char operation;
while (true) {
while (true) {
cout << "Enter equations ";
#include <iostream>
using namespace std;
int main() {
float num1, num2;
char operation;
cout << "Enter first number: ";
cin >> num1;
cout << "Enter operation (+, -, *, /): ";