Samual Sam has Published 2310 Articles

GSM Architecture

Samual Sam

Samual Sam

Updated on 24-Jun-2020 08:33:50

2K+ Views

Global System for Mobile communication (GSM) architecture comprises of the following components −Mobile Station : The mobile station is the mobile phone, which comprises of the mobile handset and SIM card. The mobile handset comprises of the transceiver, the display and its processor. SIM stands for SubscriberIdentity Module. It is ... Read More

C++ Program to Multiply Two Matrix Using Multi-dimensional Arrays

Samual Sam

Samual Sam

Updated on 24-Jun-2020 08:02:07

5K+ Views

A matrix is a rectangular array of numbers that is arranged in the form of rows and columns.An example of a matrix is as follows.A 3*3 matrix has 3 rows and 3 columns as shown below −8 6 3 7 1 9 5 1 9A program that multiplies two matrices ... Read More

C++ Program to Find GCD

Samual Sam

Samual Sam

Updated on 24-Jun-2020 07:31:44

14K+ Views

The Greatest Common Divisor (GCD) of two numbers is the largest number that divides both of them.For example: Let’s say we have two numbers are 45 and 27.45 = 5 * 3 * 3 27 = 3 * 3 * 3So, the GCD of 45 and 27 is 9.A program ... Read More

C++ Program to Swap Two Numbers

Samual Sam

Samual Sam

Updated on 24-Jun-2020 07:26:57

2K+ Views

There are two ways to create a program to swap two numbers. One involves using a temp variable and the second way does not use a third variable. These are explained in detail as follows −Program to Swap Two Numbers using temp VariableThe program to swap two numbers using a ... Read More

C++ Program to Check Whether Number is Even or Odd

Samual Sam

Samual Sam

Updated on 24-Jun-2020 07:24:38

13K+ Views

A number is even if it is divisible by two and odd if it is not divisible by two.Some of the even numbers are −2, 4, 6, 8, 10, 12, 14, 16Some of the odd numbers are −1, 3, 5, 7, 9, 11, 13, 15, 17Check Whether Number is Even ... Read More

C++ Program to Find Largest Number Among Three Numbers

Samual Sam

Samual Sam

Updated on 24-Jun-2020 07:22:40

5K+ Views

The largest number among three numbers can be found using if statement multiple times. This is given in a program as follows −Example Live Demo#include using namespace std; int main() {    int a = 5 ,b = 1 ,c = 9;    if(a>b) {       if(a>c)       cout

C++ Program to Find Quotient and Remainder

Samual Sam

Samual Sam

Updated on 23-Jun-2020 16:30:27

11K+ Views

Quotient and Remainder are parts of division along with dividend and divisor.The number which we divide is known as the dividend. The number which divides the dividend is known as the divisor. The result obtained after the division is known as the quotient and the number left over is the ... Read More

C++ Program to Display Fibonacci Series

Samual Sam

Samual Sam

Updated on 23-Jun-2020 16:24:22

16K+ Views

The fibonacci series contains numbers in which each term is the sum of the previous two terms. This creates the following integer sequence −0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377…….The recurrence relation that defines the fibonacci numbers is as follows −F(n) = ... Read More

Python program to move spaces to front of string in single traversal

Samual Sam

Samual Sam

Updated on 23-Jun-2020 16:09:23

503 Views

Given a string that has set of words and spaces, our task is to move all spaces to front of string, by traversing the string only once. We will solve this problem quickly in Python using List Comprehension.ExampleInput: string = "python program" Output: string= “ pythonprogram"AlgorithmStep1: input a string with ... Read More

Python Program to calculate n+nm+nmm.......+n(m times).

Samual Sam

Samual Sam

Updated on 23-Jun-2020 16:03:14

550 Views

Here n is given value which is positive number m is the number of times till which the series run. Our task is to calculate this series.AlgorithmStep 1: Input n, m; Step 2: Converting the number to string. Step 3: Initializing result as number and string. Step 4: Adding remaining ... Read More

Advertisements