Unable to draw rectangle

1st when I write rec in prompt command and press enter only two option area and rotation appears, dimension not.
2nd when I click on area to write the value it ask for base and height and when i write base value and press enter no rectangle is drawn.