How to set object dimension
In Object mode :


Press N to show the properties panel
Select your object
You can set the dimension from the panel




Note :


These are the dimensions of the bounding box and not the height, width and depth of the cube
You can't set the diameter height as you did when creating the object