for experts

Hi
i'm working with mpi programs every thing ok

but i need after i compile the mpi to calc the area of the rectangle for example (not my program)
accept two arguments from the command line:
mpirun -n 4 myprog 24 100
here 24 and 100 two arguments i'll pass them to the program
how can i define the two argv in program.

I don't understand your question... Are you asking how to get these arguments in your program (for your particular example "24" and "100") ? In this case, you simply use the argc/argv parameters passed to main()