# Tag Archives: TCS (adsbygoogle = window.adsbygoogle || []).push({});

## TCS Coding Practice Question | Factorial of a Number

Given a number, the task is to find the Factorial of this number using Command Line Arguments. Factorial of a non-negative integer is the multiplication… Read More »

## TCS Coding Practice Question | Average of 2 Numbers

Given two numbers, the task is to find the average of two numbers using Command Line Arguments. Examples: Input: n1 = 10, n2 = 20… Read More »

## TCS Coding Practice Question | HCF or GCD of 2 Numbers

Given two numbers, the task is to find the HCF of two numbers using Command Line Arguments. GCD (Greatest Common Divisor) or HCF (Highest Common… Read More »

## TCS Coding Practice Question | LCM of 2 Numbers

Given two numbers, the task is to find the LCM of two numbers using Command Line Arguments. LCM (Least Common Multiple) of two numbers is… Read More »

## TCS Coding Practice Question | Swap two Numbers

Given two numbers, the task is to swap the two numbers using Command Line Arguments. Examples: Input: n1 = 10, n2 = 20 Output: 20… Read More »

## TCS Coding Practice Question | Concatenate 2 Strings

Given two Strings, the task is to concatenate the two Strings using Command Line Arguments. Examples: Input: str1 = “hello”, str2 = “world” Output: helloworld… Read More »

## TCS Coding Practice Question | Greatest of 3 Numbers

Given three numbers, the task is to find the greatest of three numbers using Command Line Arguments. Examples: Input: A = 2, B = 8,… Read More »

## TCS Coding Practice Question | Checking Leap Year

Given a number N, the task is to check if N is a Leap Year or not using Command Line Arguments. Examples: Input: N =… Read More »

## TCS Coding Practice Question | Checking Prime Number

Given a number N, the task is to check if N is a Prime Number or not using Command Line Arguments. Examples: Input: N =… Read More »

## TCS Coding Practice Question | Prime Numbers upto N

Given a number N, the task is to find the Prime Numbers from 1 to N using Command Line Arguments. Examples: Input: N = 7… Read More »

## TCS Coding Practice Question | Sum of Digits of a number

Given a number, the task is to find the Sum of Digits of this number using Command Line Arguments. Examples: Input: num = 687 Output:… Read More »

## TCS Coding Practice Question | Palindrome String

Given a string, the task is to check if this String is Palindrome or not using Command Line Arguments. Examples: Input: str = “Geeks” Output:… Read More »

## TCS Coding Practice Question | Reverse a String

Given a string, the task is to reverse this String using Command Line Arguments. Examples: Input: Geeks Output: skeeG Input: GeeksForGeeks Output: skeeGroFskeeG Approach 1:… Read More »

## TCS Coding Practice Question | Reverse a Number

Given a number, the task is to reverse this number using Command Line Arguments. Examples: Input: num = 12345 Output: 54321 Input: num = 786… Read More »

## TCS Coding Practice Question | Check Palindrome Number

Given a number, the task is to check if this number is Palindrome or not using Command Line Arguments. Examples: Input: 123 Output: No Input:… Read More »