C Program to Check Whether a Number is Palindrome

Palindrome is a number or sequence of characters which reads same backward and forward. If we reverse a palindrome number, the reversed and original number will be same. The first C program checks whether a number is palindrome by reversing the number. The second program does the same thing without reversing the number. By reversing … Continue reading “C Program to Check Whether a Number is Palindrome”

Swap Two Variables without Using Third Variable

It is very trivial to swap two variables with the help of another one. Here we’ll see how to do the same thing without using the third variable. Solution 1: a=b+a; b=a-b; a=a-b; Explanation: Here the principle is simple, if you have one variable and the summation of two variables you want to swap then … Continue reading “Swap Two Variables without Using Third Variable”

Run WhatsApp on Computer Using Web Browser

WhatsApp is traditionally used on smartphone as mobile App. But using WhatsApp on computer has some benefits. Typing is much easier on computer. Also sharing video or image is much more convenient on computer than mobile phone. Here we’ll see how to use WhatsApp on computer using web browsers. At this moment supported browsers are, … Continue reading “Run WhatsApp on Computer Using Web Browser”

How to Take Screenshot on Fedora GNOME Desktop

We need to take screenshots of the desktop for various reasons. For example, you want prepare a presentation on a software. You might need to take snapshots of various Windows of the software. Here we’ll see how we can take screenshot of the whole desktop or some portion of the desktop. 1. Take screenshot of whole … Continue reading “How to Take Screenshot on Fedora GNOME Desktop”

C Program to Check Whether a Number Is Prime

Prime number is a natural number (integer) greater than 1 that doesn’t have any positive divisor other than 1 and itself. Here is the program to check whether a number is prime or not. #include <stdio.h> int CheckPrime(int n) { int i = 0; for(i=2; i<=n/2; ++i) { if(n%i == 0) { return 0; } … Continue reading “C Program to Check Whether a Number Is Prime”

0
0
0
0
0
0