Class Work on Basic
Task: 1. Take the name and ID as input from the user 2. Take two numbers from the user then add those numbers 3. Check if the summation is odd or even 4. Print all the odd numbers from 1 to 100 5. Take a number from the user then find the factorial of that number 6. Find if a number is prime #include <iostream> using namespace std; int main() { cout << "Hello world!" << endl; cout << "Hello! This is my first program."; cout << " C++ is fun." << endl; int number1; number1; int number2; int sum; cout << number1 <<endl; cout << number2 <<endl; cout << "\nPlease enter two number: " << endl; cin >> number1; cin >> number2; cout << "Given numbers are: " << endl; cout<< number1 <<endl; cout<< number2 <<endl; //Take the name an d ID as input from user ...