Interviews Questions, Algorithms, Aptitude, C Interview Program, C Theory Question, Aptitude Tricks, Test Series,

Showing posts with label C Question Group 1. Show all posts
Showing posts with label C Question Group 1. Show all posts

Monday, 13 May 2019

AREA

Question:

CASE 1:
Write a program to find Area of a circle

CASE 2:
Write a program to find Area of a rectangle

CASE 3: 
Write a program to find Area of a Triangle

Solution:

CASE 1:







CASE 2:









CASE 3:



Sum

Question:

CASE 1:
Write a program to find Sum of digits of a number

CASE 2:
Write a program to find Sum of N natural numbers

CASE 3:
Write a program to find Sum of numbers in a given range

Solution:

CASE 1:



CASE 2:


CASE 3:


Reverse Number

Question:

Write a program to reverse a given number

Solution:


Even or Odd Number

Question:

Write a program to identify if the number is even or odd

Solution:


Fibonacci series

Question:

Write a program to find Fibonacci series up to n

Solution:


LCM and GCD

Question:

CASE 1:
Write a program to find LCM of two numbers

CASE 2:
Write a program to find GCD of two numbers

Solution:

CASE 1:













CASE 2:


Strong Number

Question:

Write a program to identify if the number is Strong number or not

Solution:


Perfect Number

Question:

Write a program to identify if the number is Perfect number or not

Solution:


Positive or Negative Number

Question:

Write a program to identify the number is positive or negative

Solution:


Power and Factors

Question:

CASE 1:
Write a program to find Power of a number

CASE 2:
Write a program to find the Factors of a number

Solution:
CASE 1:












CASE 2:


Add two fractions

Question:

Write a program to Add two fractions
Solution:


Armstrong number or not

Question:

Write a program to identify if the number is Armstrong number or not

Solution:

Greatest Of the Number

Question:

CASE 1:
Write a program to find Greatest of two numbers

CASE 2:
Write a program to find Greatest of three numbers

Solution:
CASE 1:









CASE 2:

Leap Year or Not

Question:

Write a program to identify if the year is Leap year or not
Solution:


Prime number or not

Question:

Write a program to identify if the number is Prime number or not

Solution:

Palindrome or not

Question:

Write a program to identify if the number is Palindrome or not

Solution:


Factorial

Question:

Write a program to find Factorial of a number

Solution:

Number Of Digits

Question:

Write a program to find Number of digits in an integer

Solution:


ASCII Value Of Character

Question:

Write a program to find ASCII values of a character 

Solution:



Alphabet or Not

Question:

Write a program to identify if the character is an alphabet or not

Solution: