Gowrishankar,
I can't really answer your question -- based on the [lack of] information you have supplied, but allow me to draw your attention to the
PL/SQL Technology Center (part of Oracle's
OTN Web site).
The information you seek can be found in the Oracle documentation. Specifically, the
PL/SQL User's Guide. The two ways to return a value is to either define a stored function (as opposed to a procedure), or to define an "OUT" parameter in a stored procedure. Personally, I prefer to use a stored function.
Good Luck,
Avi.