Các lượt nộp
    Danh sách bài
    Trang chủ
    Báo lỗi
    solution

    Đề bài: Student Information Using Structure

    Write a C program that uses a struct to store information about a student, including:

    • Student name
    • Student age
    • Student GPA

    The program should input the information of one student and print it on the screen.

    • Định dạng đầu vào:

      Input consists of 3 lines:

      1. Student name
      2. Student age
      3. Student GPA
    • Ràng buộc đầu vào:
      • Student name length ≤ 50 characters
      • 1 ≤ age ≤ 100
      • 0.0 ≤ GPA ≤ 4.0
    • Định dạng đầu ra:

      Name: ` Age: \ GPA: \`

    Ví dụ:

    Đầu vào:

    John Smith
    20
    3.75

    Đầu ra:

    Name: John Smith
    Age: 20
    GPA: 3.75

    Đầu vào:

    Alice
    19
    3.20

    Đầu ra:

    Name: Alice
    Age: 19
    GPA: 3.20

    Chủ đề

    🧮 Cấu trúc dữ liệu & Giải thuật🔧 CCGiải thuậtTất cả môn học

    Đang tải editor...