-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasics.cc
More file actions
53 lines (44 loc) · 985 Bytes
/
basics.cc
File metadata and controls
53 lines (44 loc) · 985 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# include <iostream>
using namespace std;
int main()
{
cout << "Hello World";
return 0;
}
#include <bits/stdc++.h> // include all the entire standard laibrary
using namespace std;
int main() //function
{ int a, b;
string x;
cin >> a >> b >> x;
cout << a << " " << b << " " << x << " "<< "\n"; // new line = endl
cout << "how are you" ;
return 0;
}
#include <bits/stdc++.h> // include all the entire standard laibrary
using namespace std;
int main() //function
{ int x;
while ( cin >> x) // use if the amount of data is unknown
cout << x << " " ;
return 0;
}
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{ int n = 10;
for ( int i =1 ; i < n ; i++)
cout <<i << " ";
}
#include<bits/stdc++.h>
using namespace std;
int main()
{
int array[10];
for (int i=0 ; i <= 10; i++)
cin >> array[i] ;
for(int j = 0; j <=10 ; j++)
cout << array[j] << " ";
return 0;
}