Skip to content

Commit

Permalink
docs(examples): add example program for functions
Browse files Browse the repository at this point in the history
  • Loading branch information
aadhithya committed May 16, 2022
1 parent 5cad74b commit 1eb0ab2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/function_return.rpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
EN VAZHI THANI VAZHI myfunc_one
DOT "Hello from myfunc_one!";
AANDAVAN SOLLRAN ix ARUNACHALAM SEIYARAN 100;
DOT "returning ix =" ix "to main";
IDHU EPDI IRUKKU ix;
MARAKKADHINGA

LAKSHMI START
DOT "Hi from main!";
y CHUMMA ADHURUDHULA myfunc_one;
DOT "Value returned from myfunc_one:" y;
MAGIZHCHI

0 comments on commit 1eb0ab2

Please sign in to comment.