Skip to content

Instantly share code, notes, and snippets.

//Write a C++ program to add, subtract, multiply, and divide two numbers1.
#include <iostream>
int main() {
int fitstNumber=0, secondNumber=0;
std::cout << "---------------------------------\n";
std::cout << "enter the two numbers\n";
std::cin>>fitstNumber>>secondNumber;
std::cout << "---------------------------------\n";
std::cout << "Addition "<<fitstNumber+secondNumber;
std::cout << "\n---------------------------------\n";
@hnxsad
hnxsad / hello.cpp
Created June 8, 2024 08:27
Cpp Hello world program
#include<iostream>
int main()
{
std::cout<<"hello cpp world";
return 0;
}