Professional Documents
Culture Documents
2nd Lecture
2nd Lecture
2nd Lecture
Many of today’s operating systems, system drivers, browsers and games use C++ as their core
language. This makes C++ one of the most popular languages today.
#include <iostream>
Using namespace std;
void main () {
cout << "Hello World!";
return 0;
}
// C++ code program by using to integer number then find the average:
#include <iostream>
using namespace std;
void main () {
int num1 = 70;
int num2 = 256;
int average;
cout << num1 << endl;
cout << num2 << endl;
average = num1 + num2;
int main()
{
int length;
int width;
length = 7;
width = 5;
return 0;
}
// C++ Program to find Plus, minas
#include <iostream>
int main()
num1 = 1;
num2 = 2;
a = num1 + num2;
b = num1 - num2;
cout << num1 << " + " << num2 << " is " << a << endl;
cout << num1 << " - " << num2 << " is " << b << endl;
return 0;
#include <iostream>
using namespace std;
void main () {
int num;
cin >> num;
cout << "Number: " << num;
return 0;
}