-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject3.cpp
More file actions
35 lines (24 loc) · 750 Bytes
/
Project3.cpp
File metadata and controls
35 lines (24 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <iostream>
using namespace std;
int main()
{
int *firstInt = new int;
int *secondInt = new int;
int *thirdInt = new int;
cout<< "Enter the first integer:" << endl;
cin >> *firstInt;
cout<< "Enter the second integer:" << endl;
cin >> *secondInt;
cout<< "Enter the third integer:" << endl;
cin >> *thirdInt;
cout<< "First integer: " << *firstInt << endl;
cout<< "First integer address: " << firstInt << endl;
cout<< "Second integer: " << *secondInt << endl;
cout<< "Second integer address: " << secondInt << endl;
cout<< "Third integer: " << *thirdInt << endl;
cout<< "Third integer address: " << thirdInt << endl;
delete firstInt;
delete secondInt;
delete thirdInt;
return 0;
}