Posts

C program to find factors of any number

Image
C program to find factors of any number So, I was just sitting at my chair wondering about new posts in my blog. I  thought about a simple C program which outputs the factors of any number. The source code is given below. Please share if you find it useful. #include<stdio.h> int main(){     int no,i;     printf("Enter a number\n");     scanf("%d",&no);     printf("Factors are:\n");     for(i=2;i<=no;i++){         if(no%i==0){             printf("%d\n",i);             }             }         } Stay tune for future posts.

How to generate multiplication table in C?

Image
We learn multiplication table from childhood, but to write them in C is a task that everyone can't solve. This following program generates a multiplication table for user-defined number and range. #include<iostream> using namespace std; int main() {     int a=5,b=1,res,limit;     cout<<"Enter the length of the table\n";     cin>>limit;     do     {         res=a*b;         cout<<"\na= "<<a<<" b= "<<b<<" res= "<<res;         b++;     }while(b<=limit); return 0; } Thanks for reading. Share with the world.

How to save webpage quickly without any 3rd party softwares

Image
We all need to save webpages for offline uses every now and then. Here's a quick fix to all your hassles. I need to tell you that this works on Chrome. It may work on other browsers but I'm not sure. Please let me know whether it's doable in other browsers or not. This will save the page in PDF format. FIrst "Ctrl+P" on the page you want to save for offline uses. You should see a similar window like that. Click on save from left bar. Click on Save. You are done.

GamePlay

Image

Bird pattern in the Morning | Clips from Mother Nature

Image

Recover hacked Facebook Account

Image
I just lost my Facebook account to some random hacker. It was a joke, BTW. I just completed the recovery of a facebook account which was hacked, some months ago. First, You have to verify whether the account is hacked or not. Now, how we do this! We see the hacked Facebook account in another device(preferably). I have seen that the contact fields are different than the original. Mine was set at Michigan, US; which is as wrong as saying something like "The sun rises in the west". Next, I tried to reach that no.,but it was of no use as it was unreachable(ie. it's fake number set by the person who reset the password. Finally, I reached Facebook help center and reported the account as hacked. If you ever face this kinda problem; remember to write briefly about the issue. After 2 weeks I tried to reset the password with the login information I have. I successfully reset the password and kicked out the hacker from accessing the Facebook account. If you guys hav

How to keep yourself safe from hacking?

Image
We all know that Windows's market share is way larger than that of Linux, so hackers try to exploit its vulnerabilities to gain control of your personal pc by various attacks. To stay safe from hackers, you should follow these steps: 1. ALWAYS use a strong password and never reuse a password on another site. 2. Whenever there's an option for two-factor authentication , enable it. It will protect you almost anytime. 3. Use a password manager if you are not good at memorizing passwords. 4. Check Flash drives before inserting into the system. Thanks for reading. Keep on Hacking.