Practical file (final)
Practical file (final)
CHILDREN ACADEMY,
RAJ NAGAR Extension, GZB
Practical file on
Computer science (083)
Session: 2023-2024
Input:
Output:
WAP to calculate Simple Interest
Input:
Output:
WAP to input three numbers and display the largest /
smallest number
Input:
Output:
WAP to accept a number from the user and display
whether it is an even number or odd number
Input:
Output:
WAP to accept percentage of a student and displays its
grade accordingly
Input:
Output:
WAP to print Fibonacci Series up to certain limit
Input:
Output:
WAP to compute the greatest common divisor and least
common multiple of two integers.
Input:
Output:
WAP to reverse a number entered by the user & also to
check whether the entered number is palindrome of not
Input:
Output:
WAP to accept a number, find and display whether it’s an
Armstrong number or not.
Input:
Output:
WAP to input a number and check if the number is a prime
or composite number.
Input:
Output:
WAP to find the sum of the following series :
Input:
Output:
b) x- x 2 /2!+ x 3 /3!- x 4 /4!+ x 5 /5!- x 6 /6!
Input:
Output:
c) x + x 2 /2+ x 3 /3+ x 4 /4 +…. x n /n
Input:
Output:
Write a program to print the following patterns using nested loop:
a) * b) 1 c) 2 d) A
** 12 24 AB
*** 123 246 ABC
**** 1234 2468 ABCD
ABCDE
a)*
**
***
****
Input:
Output:
b) 1
12
123
1234
Input:
Output:
c) 2
24
246
2468
Input:
Output:
d) A
AB
ABC
ABCD
ABCDE
Input:
Output: