-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest01.cpp
More file actions
37 lines (20 loc) · 783 Bytes
/
test01.cpp
File metadata and controls
37 lines (20 loc) · 783 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
36
37
using namespace std;
#include <iostream>
int main()
{
int a; // a is an integer variable
char s [100]; // s points to a string of max 99 characters
cout << "This is a sample program." << endl;
cout << endl; // Just a line feed (end of line)
cout << "Type your age : ";
cin >> a;
cout << "Type your name: ";
cin >> s;
cout << endl;
cout << "Hello " << s << " you're " << a << " old." << endl;
cout << endl << endl << "Bye!" << endl;
return 0;
}
//My Google Places API key (Server) = AIzaSyAfEikMyjUP2Lg1Y4B1FeiFVIMG1Q4Vynk
// or AIzaSyCqqB2MKarXO5pi4yuEZjcCPADCaBzQ_GE
//My Google Javascript API key (Browser) = AIzaSyA-3aU8cc1ODOsIAAqyvHE4Qt4wq0oRQ0A