-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathl5.cpp
More file actions
48 lines (45 loc) · 1.04 KB
/
l5.cpp
File metadata and controls
48 lines (45 loc) · 1.04 KB
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
#include <iostream>
using namespace std;
int main (){
// int a = 5;
// int b = 6;
// cout<<"a&b"<< (a&b);
// int i = 7;
// cout <<++i<<endl;
// cout <<i--<<endl;
// cout <<--i<<endl;
// cout <<i++<<endl;
// int n;
// cout<<"Enter the value of n"<<endl;
// cin>>n;
// cout<<"printing count from 1 to n" <<endl;
// for(int i = 0; i<n; i++){
// cout<<i<<endl;
// }
// cout<<"Printing fibonacci series"<<endl;
// int fib1 = 0;
// int fib2 = 1;
// cout<<"Enter the value of n"<<endl;
// int fib ;int n; cin>>n;
// cout<<fib1<<" "<<fib2;
// for(int i = 3;i<=n;i++){
// fib = fib1+fib2;
// fib1 = fib2;
// fib2 = fib;
// cout<<" "<<fib;
// }
// for(int i = 0; i<=5; i++){
// cout<<i << " ";
// i++;
// }
// for(int i = 0; i<=15; i+=2){
// cout <<i<<" ";
// if(i&1){
// continue;
// }
// i++;
// }
int a = 5;
int *p = &a;
cout<<p<<endl<<&a;
}