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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
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 {
number size = 5 ;
bolo("\n[1] Generating Numeric Diamond:\n");
dohrao (number i = 1; i <= size; i++) {
dohrao (number s = 1; s <= (size - i); s++) { bolo(" "); }
dohrao (number j = 1; j <= i; j++) {
bolo(" ");
bolo(i);
}
bolo("\n");
}
dohrao (number i = (size - 1); i >= 1; i--) {
dohrao (number s = 1; s <= (size - i); s++) { bolo(" "); }
dohrao (number j = 1; j <= i; j++) {
bolo(" ");
bolo(i);
}
bolo("\n");
}
bolo("Apni pehli umar likho:");
number umar = suno();
agar (umar >= 18) {
bolo("Aap bade ho gaye hain!");
} warna agar(umar==18){
bolo("Kya baat he aapki");
} warna {
bolo("Abhi aap chote hain.");
}
bolo("\n\n--- YaarScript Pro Mission Control ---\n");
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. Kya dobara koshish karni hai? (1 for Yes, 0 for No): ");
number choice = suno();
agar (choice == 0) {
attempts = 5;
}
} jabtak (attempts < 5);
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");
}