Ref: https://www.facebook.com/groups/299317782048/permalink/10156570432687049/

Matched Pair

Programming Exercise for June '18

Write a program in C that reads a file like

// mpfile.txt - 6/22/18 - tct

st [MC 314,14;pl ""]

foo char args [ // text f
 int st1
 if st1 [
  ]
 ]

bar int args1 [ // text b
 int v1;v1=71
 if v1 [
  ]
 ]

baz int args [ // text z
 while args > 0 [
  args=args-5
  st
  if args==1 [MC 217,14;pl ""]
  st
  ]
 ]

main [
 printf "%cmpfile.txt%c%c",10,10,10
 baz 6
 ]

and outputs

st [MC 314,14;pl ""]
foo char args [ text f
bar int args [ text b
baz int args [ text z
main [



.