Output the diamond shape as shown in the figure
#include <stdio.h>
int main(){
int a;
for(int i=1;i<=a;i++){
for(int j=1;j<=(a-i);j++){
printf(" ");
}
for(int k=1;k<2*i;k++){
printf("*");
}
printf("\n");
}
for(int i=1;i<a;i++){
for(int j=1;j<=i;j++){
printf(" ");
}
for(int k=1;k<2*(a-i);k++){
printf("*");
}
printf("\n");
}
}