various pattern in c java program to print star pyramid patterns