Reverse an Array using recursion: #include<iostream> using namespace std; void reverse(int input[], int n) { if(n==0) { return; } cout<<input[n-1]<<endl; reverse(input,n-1); } int main() { void reverse(int input[], int n); int n; cin>>n; int input[n]; for(int i=0; i<n; i++) cin>>input[i]; reverse(input,n); return 0; }
Posts
Showing posts from 2020
Clock project using htmls/css/js
- Get link
- X
- Other Apps
clock image html code Clock Using Pure JS css code #clockContainer{ position: relative; margin: auto; height: 40vw; width: 40vw; background: url(clock.png) no-repeat; background-size: 100%; } #hour, #minute, #second{ position: absolute; background: black; border-radius: 10px; transform-origin: bottom; } #hour{ width: 1.8%; height: 25%; top: 25%; left: 48.85%; opacity: 0.8; } #minute{ width: 1.6%; height: 30%; top: 19%; left: 48.9%; opacity: 0.8; } #second{ width: 1%; height: 40%; top: 9%; left: 49.25%; opacity: 0.8; } js code setInterval(() => { d = new Date(); htime = d.getHours(); mtime = d.getMinutes(); stime = d.getSeconds(); hrotation = 30*htime + mtime/2; mrotation = 6*mtime; srotation = 6*stime; hour.style.transform = `rotate(${hrotation}deg)`; minut...
How to create an Annoying Virus In few steps using notepad only
- Get link
- X
- Other Apps
c How to create an Annoying Virus In few steps using notepad only This virus will annoy you so badly that you will smash your system with a hammer. But…. At the same time it will destroy your files on the computer . Happy? Don’t try it in your PC What it can do? 1. Copy itself into startup. 2. Copy itself over one thousand times into random spot in your computer. 3. Hide itself and all other created files. 4. Task kill MSN, Norton, windows Explorer , Limewire. 5. Swap the left mouse button with the right one. 6. Opens alert boxes. 7. Changes the time to 12:00 and shuts down the computer. Let’s Start…… Step 1 : Open notepad and write down the following code: ...