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
73
74
75
76
77
78
79
80
81
pakka number TARGET = 100;
qism Mausam { Garmi, Sardi, Barish };
number calculate_bonus(number level) {
agar (level > 5) {
wapsi level * 10;
} warna {
wapsi level * 2;
}
}
yaar {
bolo("--- YaarScript Pro Mission Control ---
");
number counter = 0;
float gravity = 9.81;
lafz mission = "Mars Rover";
faisla is_active = sahi;
bolo("Starting Iteration:\n");
dohrao (number i = 1; i <= 5; i++) {
counter = counter + (i * 2);
bolo("Step ", i, ": Counter is ", counter, "\n");
agar (counter > 20) {
bolo("Threshold crossed, stopping.\n");
bas_kar;
}
}
bolo("\nWaiting for systems...\n");
number wait_time = 3;
jabtak (wait_time > 0) {
bolo("T-minus: ", wait_time, "\n");
wait_time = wait_time - 1;
}
number attempts = 0;
karo {
attempts = attempts + 1;
bolo("Attempt #", attempts, " successful\n");
} jabtak (attempts < 2);
number status_code = 1;
bolo("\nSystem Status check: ");
intekhab (status_code) {
agar_ho 0:
bolo("CRITICAL ERROR\n");
bas_kar;
agar_ho 1:
bolo("SYSTEMS NOMINAL\n");
bas_kar;
aakhir:
bolo("UNKNOWN STATE\n");
}
number bonus = calculate_bonus(7);
bolo("\nFinal Mission Report:");
bolo("\n- Mission Name: ", mission);
bolo("\n- Bonus Points: ", bonus);
bolo("\n- Global Target: ", TARGET);
bolo("\n\nKaam khatam ho gaya! (Execution Finished)\n");
}