回覆列表
  • 1 # 使用者8676904689326

    //菱形圖for語句

    #include

    voidfun(intn)

    {

    inti=0,j=0,m=0;

    for(i=1;i

    {

    for(j=0;j

  • 2 # a不會愛的小笨蛋

    Private Sub Command1_Click()t = 6"(這裡設定從A起的字母個數,A-F時 為6 A-Z時為26)For i = 1 To ts = ""For j = 1 To 2 * i - 1s = s & Chr(i + 64)NextPrint Space(t - i) & s & Space(t - i)NextFor i = 1 To t - 1s = ""For j = 1 To (t - i) * 2 - 1s = s & Chr(64 + t - i)NextPrint Space(i) & s & Space(i)NextEnd Sub

    C語言輸出一個菱形圖案(有程式)#include <stdio.h>void main(){int i,j,k;for(i=0;i<=3;i++){for(j=0;j<=2-i;j++)printf(" ");for(k=0;k<=2*i;k++)printf("*");printf("\n");}for(i=0;i<=2;i++){for(j=0;j<=i;j++)printf(" ");for(k=0;k<=4-2*i;k++)printf("*");printf("\n");

  • 中秋節和大豐收的關聯?
  • 鼻涕中帶有血鼻塞還咳嗽有時會頭痛是鼻咽癌嗎?