Skip to content

Commit 00ec29f

Browse files
authored
Create input.txt
1 parent 1904453 commit 00ec29f

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed

R Language/input.txt

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
import mathematical.h
2+
import exchangeInfo.h
3+
4+
root:
5+
{
6+
#///////////////// Main function starts \\\\\\\\\\\\\\\\\
7+
8+
#/////////////// Variables Declarations \\\\\\\\\\\\\\\\\\\
9+
int a,b,c;
10+
char x,y,z;
11+
12+
#//////////////// Value assignments \\\\\\\\\\\\\\\\\\
13+
a=6;
14+
b=2;
15+
c=3;
16+
17+
#//////////////////// Calculations \\\\\\\\\\\\\\\\\\
18+
c = a+b;
19+
print(c);
20+
c=a-b;
21+
print(c);
22+
c=a*b;
23+
print(c);
24+
c=a/b;
25+
print(c);
26+
c=a%b;
27+
print(c);
28+
c= 3^2;
29+
print(c);
30+
31+
#///////////////// Conditionals \\\\\\\\\\\\\\\\\\
32+
33+
# IFELSE functionality
34+
IF(a>b)
35+
{
36+
a+b;
37+
}
38+
ELSE
39+
{
40+
a-b;
41+
}
42+
43+
# SWITCH functionality
44+
SWITCH ( a )
45+
{
46+
CASE 1 :
47+
a + b; BREAK;
48+
+
49+
CASE 2 :
50+
b + c; BREAK;
51+
+
52+
CASE 3 :
53+
a + c; BREAK;
54+
DEFAULT :
55+
c + i; BREAK;
56+
}
57+
58+
5>2;
59+
2<5;
60+
5==5;
61+
62+
#///////////////// Loops \\\\\\\\\\\\\\\\\\
63+
FOR (1<5)
64+
{
65+
a=a+b;
66+
}
67+
print(a);
68+
69+
WHILE(1<5)
70+
{
71+
a=a-b;
72+
}
73+
print(a);
74+
75+
#/////////////// ARRAY with intialization \\\\\\\\\\\\\\\
76+
ARRAY int N (7) = 0;
77+
78+
#////////////// FUNCTIONS \\\\\\\\\\\\\\\\\
79+
OE(8);
80+
OE(7);
81+
SIN(0);
82+
COS(0);
83+
TAN(0);
84+
85+
ISPRIME(1);
86+
ISPRIME(6);
87+
ISPRIME(7);
88+
89+
FIBSERIES(11);
90+
91+
FACTORS(40);
92+
93+
94+
95+
}

0 commit comments

Comments
 (0)