-
Notifications
You must be signed in to change notification settings - Fork 0
/
examples.html
71 lines (62 loc) · 1.43 KB
/
examples.html
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
<!DOCTYPE html>
<html>
<head>
<title>मराठीLang Examples</title>
<link rel="stylesheet" href="style.css" />
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
}
h1 {
margin-top: 0;
}
.card {
background-color: #f9f9f9;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
padding: 20px;
}
.card h2 {
margin-top: 0;
}
pre {
background-color: #f0f0f0;
border-radius: 3px;
padding: 10px;
overflow-x: auto;
}
pre code {
font-family: monospace;
}
</style>
</head>
<body>
<h1>मराठीLang Examples</h1>
<div class="card">
<h2>Hello World</h2>
<pre><code>दाखवा('नमस्कार World!');
</code></pre>
</div>
<div class="card">
<h2>Add Two Numbers</h2>
<pre><code>ऐका num1 आहे 5;
ऐका num2 आहे 3;
ऐका sum = num1 अधिक num2;
दाखवा(sum);
</code></pre>
</div>
<div class="card">
<h2>Factorial</h2>
<pre><code>ऐका number आहे 5;
ऐका fact आहे 1;
लूप(ऐका i आहे 1; i <= number; i आहे i अधिक 1){
fact आहे fact गुणिले i;
};
दाखवा(fact);
</code></pre>
</div>
</body>
</html>