27.Write a programme using for loop(making the star pattern)
#include <stdio.h>
main() {
int a;
int b;
for(a=1;a<=5;a++){
for(b=1;b<=a;b++){
printf("*");}
printf("\n");}
getch();}

28.Write a programme using star pattren revrse
#include<stdio.h>
main(){
int a;
int b;
for(a=1;a<=5;a++){
for(b=5;b>=a;b--){
print("*");}
print("\n");}
getch();
}
