top of page

CREATE YOUR FUNCTIONS

Many times in our programs often repeat the same action, not to have to repeat many times the same thing can do , " functions " that allow us torepeat the same action many times in the program. These functions are written outside the block " code ()" and can do all necessary functions in a program. The blocks to create functions are found in the bar blocks in the section " Functions ":

When we want the function to return us any information, you must use the " return (DATA);" to send it to block " code ()", for example if we return one " int " the " type " of the function must be an " int " and within the " return(DATA);" will the variable that we want to send.

bottom of page