print the following patterns- The right half of the pyramid
Following is the program to print the Right Half of the Pyramid
#include<stdio.h>
int main(){
int a,b;
printf("No of rows: ");
scanf("%d",&a);
for(int i=1;i<=a;i++){
for(int j=a;j>i;j--){
printf(" ");
}
for(int k=0;k<i;k++){
printf("*");
}
printf("\n");
}
}
