Anda di halaman 1dari 4

1.

Print a message one time


2. Print message n times
3. Print single character
4. Take a character from user and print it:
5-a. Perform addition on two numbers and print result:
5-b. Perform subtraction on two numbers and print result:
5-c. Perform multiplication on two numbers and print result:
5-d. Perform division on two numbers and print result:
6-a. Take two numbers from user and perform addition:
6-b. Take two numbers from user and perform subtraction:
6-c. Take two numbers from user and perform multiplication:
6-d. Take two numbers from user and perform division:
7. Declare two variables assign values to them and print maximum number:
8. Declare two variables assign values to them and print maximum number:
9. Program to find factorial of a number:
10. Program that works as a simple arithmetic calculator:
11. Program to print Fibonacci series:
12. Program to print table of a number:
13. Program to print prime numbers:
14. Print alphabets upper case (A to Z) or lower case (a to z):
15. Program to determine whether entered character is a vowel or consonant:
16. Program to find whether entered year is a leap year or not:
17. Program to print area of a triangle if user presses T or t and area of a square if user
presses S or s:
18. Program to print square and cube of a number:
19. Program to take 4 numbers from user and print their sum and average:
20. Program to check whether entered character is in uppercase or lowercase
21. Program to take a decimal number from a user and convert it into binary number:
22. Program to take a decimal number from a user and convert it into octal number:
23. Program to take a decimal number from a user and convert it into hex number:
24: Program to take n-digit number in one line and print its digits in separate lines:
25. Program to print numbers 1-100 using loop:
26. Program to take values in array and display them on screen:
27. Program to input values in array and print their sum:
28. Program to take 10 values in an array and calculate its average and then display values
greater than average:
29. Program to take values in array and print minimum and maximum values:

TABLE OF CONTENTS

No
.
1.
2.
3.
4.
5.a
.
5.b
.
5.c
.
5.d
.
6.a
.
6.b
6.c
6.d
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.

Programs

Page no.

Print a message one time


Print message n times
Print single character
Take a character from user and print it:
Perform addition on two numbers and print result

1
3
5
6
8

Perform subtraction on two numbers and print result

Perform multiplication on two numbers and print result

10

Perform division on two numbers and print result

11

Take two numbers from user and perform addition

12

Take two numbers from user and perform subtraction


Take two numbers from user and perform multiplication
Take two numbers from user and perform division
Declare two variables assign values to them and print maximum number
Declare two variables assign values to them and print maximum number
Program to find factorial of a number
Program that works as a simple arithmetic calculator
Program to print Fibonacci series
Program to print table of a number
Program to print prime numbers
Print alphabets upper case (A to Z) or lower case (a to z)
Program to determine whether entered character is a vowel or consonant
Program to find whether entered year is a leap year or not
Program to print area of a triangle if user presses T or t and area of a square if
user presses S or s
Program to print square and cube of a number
Program to take 4 numbers from user and print their sum and average
Program to check whether entered character is in uppercase or lowercase
Program to take a decimal number from a user and convert it into binary
number
Program to take a decimal number from a user and convert it into octal number
Program to take a decimal number from a user and convert it into hex number
Program to take n-digit number in one line and print its digits in separate lines
Program to print numbers 1-100 using loop
Program to take values in array and display them on screen

14
16
18
20
21
22
24
26
28
30
32
35
37
39
42
44
46
48
50
52
54
56
58

27.
28.
29.

Program to input values in array and print their sum


Program to take 10 values in an array and calculate its average and then display
values greater than average
Program to take values in array and print minimum and maximum values

60
62
64

TABLE OF CONTENTS

No
.
1.
2.
3.
4.
5.a
.
5.b
.
5.c
.
5.d
.
6.a
.
6.b
6.c
6.d
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.

Programs

Page no.

Print a message one time


Print message n times
Print single character
Take a character from user and print it:
Perform addition on two numbers and print result

1
3
5
6
8

Perform subtraction on two numbers and print result

Perform multiplication on two numbers and print result

10

Perform division on two numbers and print result

11

Take two numbers from user and perform addition

12

Take two numbers from user and perform subtraction


Take two numbers from user and perform multiplication
Take two numbers from user and perform division
Declare two variables assign values to them and print maximum number
Declare two variables assign values to them and print maximum number
Find factorial of a number
Program that works as a simple arithmetic calculator
Print Fibonacci series
Print table of a number
Print prime numbers
Print alphabets upper case (A to Z) or lower case (a to z)
Determine whether entered character is a vowel or consonant
Find whether entered year is a leap year or not
Print area of a triangle if user presses T or t and area of a square if user presses
S or s

14
16
18
20
21
22
24
26
28
30
32
35
37
39

18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.

Print square and cube of a number


Take 4 numbers from user and print their sum and average
Check whether entered character is in uppercase or lowercase
Take a decimal number from a user and convert it into binary number
Take a decimal number from a user and convert it into octal number
Take a decimal number from a user and convert it into hex number
Take n-digit number in one line and print its digits in separate lines
Print numbers 1-100 using loop
Take values in array and display them on screen
Input values in array and print their sum
Take 10 values in an array and calculate its average and then display values
greater than average
Take values in array and print minimum and maximum values

42
44
46
48
50
52
54
56
58
60
62
64

Anda mungkin juga menyukai