ݺߣ

ݺߣShare a Scribd company logo
งาน #3
น.ส.ไอรินทร์ นิธิภัทร์รปัญญา ม.6/1 เลขที่ 14
#include<stdio.h>
main()
{ printf("nn");
printf("IrinNitipatpornpanyaM.6/1 No.14n");
printf("nn");
intA,B;
for(A=1;A<15;A++)
{ for(B=14;B>A;B--)
{ printf("");
}
for(B=1;B<=A;B++)
{ if(B==1)
{ printf("%d",A);
}
else
{ printf("");
}
}
for(B=B-2;B>0;B--)
{ if(B==1)
{ printf("%d",A);
}
else
{ printf("");
}
}
printf("n");
}
{ printf("nn");
}
return0;
}
รูปผลลัพธ์
ผังงาน
start
Int A,B
For (A=1;A<15;A++)
For (B=14;B>A;B--)
For (B=1;B<=A;B++)
If (B==1)
For (B=B-2;B>0;B--)
If (B==1) END

More Related Content

งาน