C Program to Find GCD

C Program to Find GCD: This post discusses how to write C program to find GCD. There are many approaches to find the greatest common divisor (GCD) of any two…

C Program to Print Fibonacci Numbers

Before looking into the program to print Fibonacci numbers, let us look into what really it is.  Fibonacci numbers are a sequence of numbers known as a Fibonacci sequence which is characterized by the fact…

Kattis Problem: Batter Up

Problem Link https://open.kattis.com/problems/batterup Sample Solution import java.util.Scanner; class BatterUp{ public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); float sum = 0, avg=0; int[]…

Kattis Problem: Faktor

Problem Link: https://open.kattis.com/problems/faktor Sample Solution import java.util.Scanner; public class Faktor { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(), i = sc.nextInt(); int…

Types of Social Engineering

Two common categories of social engineering: Human-Based: The face-to-face interaction between the attacker and the victim achieves it. An example of such type is calling the help desk of a…

HTTPS Vs HTTP

HTTPS Vs HTTP:Ā There are several reasons why websites must be run on HTTPS rather than HTTP. HTTPS basically stands for HTTP over SSL (Secure Socket Layer). It is implemented to…

Phone-book Using Shell Script

Here is the program to create a phonebook using a shell script. It covers the following functionalities. Display a menu for the following functions Add an entryDisplay all matches to…