star pattern programs in c with explanation