Ubuntu boot menu (GRUB) එකේ Boot Order එක වෙනස් කරන්න
My C programs: කිරිබත් කැටේ
#include<stdio.h>
int main(){
int i,j,k=0,d,p;
scanf("%d",&d);
for(i=d;i>0;i--){
k++;
for(j=i;j>0;j--){
printf(" "); }
for(p=(2*k)-1;p>0;p--){
printf("*"); }
printf("\n");
}
k=d;
for(i=2;i<d+1;i++){
k--;
for(j=i;j>0;j--){
printf(" ");
}
for(p=(2*k)-1;p>0;p--){
printf("*");
}
printf("\n");
}
return 0;
}
Subscribe to:
Posts (Atom)