how to subdivide and smooth a cube in unity

documentation or a simple example please I am a beginner

Unity is not a modeling program. Try 3DS Max, Maya, or Blender. Once you have a model subdivided and smoothed, then you can drag it into Unity to use in your game project. There may be an asset on the Asset Store you can buy that might be able to edit a model, but it’ll be extremely limited and definitely not a replacement for a modeling program.