It worked!

main_stat got the value from the function myadd()!!!!!