forked from harshalmore31/cdac_python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuestions.txt
More file actions
77 lines (53 loc) · 1.31 KB
/
Copy pathQuestions.txt
File metadata and controls
77 lines (53 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
1) accept a number and display its table.
2) using switch ….case display whether accepted character is vowel or not.
3) Display numbers 1 to 10 using While loop
4) Display numbers from 3 to 30 except number 24 using while loop.
5) accept marks from the user. Using if…….elif…. Else, display whether result is fail, pass, second class , first class, Distinction etc.
6) print the total of first 10 numbers.
7) accept numbers till user enters 0 and display the total of all the numbers entered.
8) accept a character and display whether it is upper case or lower case or not an alphabet.
9) display fibonicii series of 10 numbers
10) display prime numbers from 3 to 30
11) accept a number and display whether it is prime or not
12) print the following pattern:
*
* *
* * *
* * * *
* * * * *
13) print the following pattern:
* * * * *
* * * *
* * *
* *
*
14) print the following pattern
*
* *
* * *
* * * *
* * * * *
15) print the following pattern
*
* *
* * *
* * * *
* * * * *
16) print the following pattern
* * * * *
* * * *
* * *
* *
*
17) print the following
*
* *
* * *
* * * *
* * * * *
* * * * * *
* * * * *
* * * *
* * *
* *
*