cyg41223103 cp2023

  • Home
    • SMap
    • reveal
    • blog
  • About
  • Brython
  • w15
    • Q2
    • Q1
  • 作業內容
    • W3
    • W4
    • w5
    • w6
      • 台灣國旗
      • 日本國旗
      • 美國國旗
      • 英國國旗
      • 韓國國旗
      • 中國國旗
    • W7
    • W10
    • W13
  • ANSI C
    • c1.
    • c2.
    • c3.
    • c4.
    • c5.
    • c6.
    • c7.
    • c8.
    • c9.
    • c10.
  • C_EX
    • ex1.
    • ex2.
    • ex3.
    • ex4.
    • ex5.
    • ex6.
    • ex7.
    • ex8.
    • ex9.
    • ex10.
  • NOTE
    • ssh
c3. << Previous Next >> c5.

c4.

使用哈希 (#) 列印一個區塊 F,其中 F 的高度為 6 個字符,寬度為 5 個和 4 個字符。並且還列印一個非常大的“C”。

#include <stdio.h>

int main() 
{
    // Print top line of pattern
    printf("    ######\n");

    // Print second line of pattern
    printf("  ##      ##\n");

    // Print lines 3 to 7 of pattern
    printf(" #\n");
    printf(" #\n");
    printf(" #\n");
    printf(" #\n");
    printf(" #\n");

    // Print bottom line of pattern
    printf("  ##      ##\n");

    // Print last line of pattern
    printf("    ######\n");

    return(0);
}


c3. << Previous Next >> c5.

Copyright © All rights reserved | This template is made with by Colorlib