Professional Documents
Culture Documents
COMPUTER SCIENCE
PROJECT FILE
XI-A
Index
6. reminder.
10. a≠0)
14. not.
17. *
**
***
****
CODE:
OUTPUT:
PRACTICAL -2
Q- Write a program that accepts radius of a circle and prints it’s area.
CODE:
OUTPUT:
PRACTICAL -3
Q-Write a program that inputs a student’s marks in three subjects (out of 100)
CODE:
OUTPUT:
PRACTICAL -4
Q- Write a program to compute area of square and triangle
CODE:
OUTPUT:
PRACTICAL -5
. Q- Write a program to compute simple interest.
CODE:
OUTPUT:
.
PRACTICAL -6
Q- Write a program to read two numbers and prints their quotient and reminder.
CODE:
OUTPUT:
PRACTICAL -7
CODE:
OUTPUT:
PRACTICAL -8
CODE:
OUTPUT:
PRACTICAL -9
CODE:
OUTPUT:
PRACTICAL -10
CODE:
OUTPUT:
PRACTICAL -11
Q- Program to perform arithmetic calculation using switch. This program inputs two
CODE:
OUTPUT:
PRACTICAL -12
CODE:
OUTPUT:
PRACTICAL -13
CODE:
OUTPUT:
PRACTICAL -14
CODE:
OUTPUT:
PRACTICAL -15
CODE:
OUTPUT:
PRACTICAL -16
CODE:
OUTPUT:
PRACTICAL -17
**
***
****
CODE:
OUTPUT:
PRACTICAL -18
Q-Program to add the odd numbers up to(and including) a given value N and print the
result.
CODE:
OUTPUT:
PRACTICAL -19
Q- Compute the greatest common divisor and the least common multiple of two
integers.
CODE:
OUTPUT:
PRACTICAL -20
CODE:
OUTPUT:
PRACTICAL -21
Q- Test if a number is equal to the sum of cubes of it’s digits . find the smallest and largest
such numbers.
CODE:
OUTPUT: