Return value of a function

I have to get a value from another function

  void myFunction(){
     c = secondFunction(a, b);
     print(c);
  }  


int secondFunction(int one, string two){
 int result =  one.ToString() + two;
 return result
}

tried like this. But i am getting error ? how to escape from this ?

secondFunction needs a return type, not void. Since you want to return an int, just change the void to int like

int secondFunction(int one, int two){

It works! Thank you very much!