Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
using namespace std;
int main() {
float a, b;
char sign;
cout << "Enter first number: ";
cin >> a;
cout << "Enter second number: ";
#include <iostream>
using namespace std;
int main() {
int num;
cout << "Enter number from 1 to 100: ";
cin >> num;
if (num < 1 || num > 100) {
cout << "Error" << endl;