Rihan Khan (Computer Science)
Rihan Khan (Computer Science)
(COMPUTER SCIENCE)
Name: Rihan
Class: XII-A
Roll NO.: 11
Question-1
Write a program to print string given from
keyboard.
INPUT:-
OUTPUT:-
Question-2
Write a program to perfrom addition, subtraction,
multiplication, and division of two numbers.
INPUT:-
OUTPUT:-
Question-3
Write a program to calculate the area and perimeter of a
recctanglegiven its length and breadth.
INPUT:-
OUTPUT:-
Question-4
Write a program to calculate simple interest given
principal, rate, and time.
INPUT:-
OUTPUT:-
QUESTION-5
Write a program to convert temperature from
Celcius to Farenheit.
INPUT:-
OUTPUT:-
Question-6
Write a program to find the square of a given
number.
INPUT:-
OUTPUT:-
Question-7
Write a program to check if a given number is even
or odd.
INPUT:-
OUTPUT:-
Question-8
Write a program to find largest three numbers.
INPUT:-
OUTPUT:-
Question-9
Write a program to check if a given year is a leap
year.
INPUT:-
OUTPUT:-
Question-10
Write a program to calculate the factorial of a given
number.
INPUT:-
OUTPUT:-
Question-11
Write a program to find the sum of the da given
number.
INPUT:-
OUTPUT:-
Question-12
Write a program to find the sum of the first n natural
numbers.
INPUT:-
OUTPUT:-
Question-13
Write a program that performs basic arithmetic
operations.
INPUT:-
OUTPUT:-
Question-14
Write a program to print the multiplication table of a
given number.
INPUT:-
OUTPUT:-
Question-15
Write a program to count the number of digits in a
given number.
INPUT:-
OUTPUT:-
Question-16
Write a program to check if a given number is an
Armstrong number.
INPUT:-
OUTPUT:-
Question-17
Write a program to calculate the power of
a number using a loop(e.g.,x^y).
INPUT:-
OUTPUT:-
Question-18
Write a program to find the sum of the series
1+1/2+1/3+…+1/n.
INPUT:-
OUTPUT:-
QUESTION-19
Write a program to reverse the digits of a given
number.
INPUT:-
OUTPUT:-
Question-20
Write a program to print the Fibonacci
Series up to n terms.
INPUT:-
OUTPUT:-