Using for loop c programmes

Great! Practicing for loops in C is an excellent way to strengthen your understanding of programming logic and structure. Here are 10 C programming exercises using for loops for practice, from beginner to intermediate level: --- ✅ 1. Print Numbers from 1 to N Goal: Input n and print numbers from 1 to n. int n; printf("Enter a number: "); scanf("%d", &n); for (int i = 1; i <= n; i++) {     printf("%d ", i); } --- ✅ 2. Sum of First N Natural Numbers Goal: Input n, output sum 1 + 2 + ... + n. int n, sum = 0; printf("Enter a number: "); scanf("%d", &n); for (int i = 1; i <= n; i++) {     sum += i; } printf("Sum = %d\n", sum); --- ✅ 3. Factorial of a Number Goal: Input n, calculate n!. int n, fact = 1; printf("Enter a number: "); scanf("%d", &n); for (int i = 1; i <= n; i++) {     fact *= i; } printf("Factorial = %d\n", fact); --- ✅ 4. Multiplication Table Goal: Input n, print tabl...

ICT WRITTEN EXAM:: TODAYS TOPIC::= MODERN MATH NUMBER SERIES

Directions (Q. 1 - 12): What value should come
at the place of question mark in the following
number series?
1) 11, 19, 65, 259, 1161, ?
a) 3081
b) 6021
c) 4421
d) 5041


Answers:
1) Answer: b)
11 x 1 + 2³
= 19
19 x 2 + 3³
= 65
65 x 3 + 4³
= 259
259 x 4 + 5³
= 1161
1161 x 5 + 6³
= 6021
2) 8, 50, 295, ? , 5881, 17641
a) 1251
b) 1471
c) 1081
d) 1391
e) None of these


2) Answer: b)
8 x 7 – 6 = 50
50 x 6 – 5 = 295
295 x 5 – 4 = 1471
1471x4—3= 5881
5881x3—2= 17641

3) 10, 15, 35, 82.5, ? , 562.5
a) 215
b) 210
c) 205
d) 220
e) None of these

3) Answer: c)
10 x 0.5 + 10 = 15
15 x 1 + 20 = 35
35 x 1.5 + 30 = 82.5
82.5 x 2 + 40 = 205
205 x 2.5 + 50 = 562.5

4) 1000, 501, 170, 47.5, ?
a) 14.5
b) 15
c) 16
d) 16.5
e) None of these

4) Answer: d)
1000 ÷ 2 + 1 = 501
501 ÷ 3 + 3 = 170
170 ÷ 4 + 5 = 47.5
47.5 ÷ 5 + 7 = 16.5

5) 10, 11, 19, 46, ?, 235
a) 200
b) 110
c) 105
d) 64
e) None of these

5) Answer: b)
10 + 1³
= 11
11 + 2³
= 19
19 + 3³
= 46
46 + 4³
= 110
110 + 5³
= 235

6) 1290, 645, 430, ? , 258, 215
a) 322.5
b) 356
c) 334
d) 342.5
e) 308

6) Answer: a)
1290 * (1/2) = 645
645 * (2/3) = 430
430 * (3/4) = 322.5
322.5 * (4/5) = 258
258 * (5/6) = 215

7) 52, 274, 404, 472, 502, ?
a) 536
b) 512
c) 554
d) 580
e) 608

7) Answer: b)
52 + 6³
+ 6 = 274
274 + 5³
+ 5 = 404
404 + 4³
+ 4 = 472
472 + 3³
+ 3 = 502
502 + 2³ + 2 = 512

8) 11, 22, 66, ? , 2310, 25410
a) 360
b) 420
c) 330
d) 450
e) 480

8) Answer: c)
11 * 2 = 22
22 * 3 = 66
66 * 5 = 330
330 * 7 = 2310
2310 * 11 = 25410

9) 126, 64, 72, 171, ? , 6109
a) 652
b) 576
c) 924
d) 1032
e) 748

9) Answer: e)
126 * 0.5 + 1³
= 64
64 * 1 + 2³
= 72
72 * 2 + 3³
= 171
171 * 4 + 4³
= 748
748 * 8 + 5³
= 6109

10) 1386, 1386, 693, 231, 57.75, ?
a) 18.25
b) 11.55
c) 24.65
d) 15.45
e) 27.35

10) Answer: b)
1386 ÷ 1 = 1386
1386 ÷ 2 = 693
693 ÷ 3 = 231
231 ÷ 4 = 57.75
57.75 ÷ 5 = 11.55

11) 56, 28, 42, 105, ? , 1653.75
a) 367.5
b) 255.5
c) 412.25
d) 433.75
e) 289.25

11) Answer: a)
56 * ½ = 28
28 * 3/2 = 42
42 * 5/2 = 105
105 * 7/2 = 367.5
367.5 * 9/2 = 1653.75
The answer is, 367.5

12) 12, 25, 84, 361, ? , 11205
a) 1568
b) 1672
c) 1854
d) 1744
e) 2056

12) Answer: c)
12 * 2 + 12
= 25
25 * 3 + 32
= 84
84 * 4 + 52
= 361
361 * 5 + 7
2
= 1854
1854 * 6 + 92
= 11205
The answer is, 1854

Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. Hi Admin! The questions you shared here with answers and explanation as well, is very helpful for students and people who are preparing for competitive examinations. Such content helps in engaging students in some fruitful activities. Parents and math tutors also seek such questions and knowledge sheets for students to prepare them well for future Math exams. It would be a great help for students and parents if people from the education industry share their knowledge, resources, and blogs with them. Thanks for sharing such helpful content.

    ReplyDelete

Post a Comment

Popular posts from this blog

python in brief

advance loop based C programmes