supposing that we want to calculate the sum of two integers , a and b , so we need to give a and b and receive the integer value of (a+b) in this case the type of return is int.
What about Void ?
if we don't need any value from the function, for example , we just want the function to print something for as.
for example we have an array of numbers and we just need a function to print the array .so she will just print the array and stop without returning any value . then the type here shoulf be void .