Hi my dear friends,
I’ve developed a simple procedure as follows:
> PS:=proc(E)
> if E<10 then E^2
> else 0
> end if:
> printf("V=%d\n",%):
> end proc:
I want to write a command that after Entering the >PS:=proc(E) tells users a statement like this: “Please Enter Energy in SI Units as E in this command >PS(E)” immediately after >end proc: .
How can I do it?
Thanks a lot in advance for your precious helps,
Werner Melzer
readstat or Maplet
You could use readstat command, but it is better to write a simple Maplet for such a sort of an interaction.
Alec
Here a simple way
E := readstat("Enter the value of E :");printf("V=%d\n", E);