> For the complete documentation index, see [llms.txt](https://docs.aic-eec.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aic-eec.com/c-c++-for-embedded-programming/principle-c-c++-programming/linux-os-lab-1-c-c++-code.-how-to-compile-and-run./how-to-create-a-program-that-you-can-enter-inputs./lab-1-exercise.md). Agents can also search and read this documentation through its [MCP server](https://docs.aic-eec.com/~gitbook/mcp).

# Lab 1 Exercise

## Lab 1 Exercise : Program wait for your Input

จงเขียนโปรแกรมภาษา C ให้รับค่า ชื่อ นามสกุล และ รหัสนิสิตแล้วแสดงผลออกมาเช่นเดียวกับภาพด้านล่าง

![](https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MClo3nC-1US0rbK8Qau%2F-MP2EHQk9-WRAxUtoBMd%2F-MP2Lgoi3FKn_N4AsqWb%2Fimage.png?alt=media\&token=8372b02b-4243-4f85-a41b-a065a4e9063b)

ทำการบันทึก code ที่ใช้และผลการรันที่ได้มา พร้อมทั้งเก็บรูปภาพผลการรัน

## Lab 2 Exercise : Get argument & Display

จงเขียนโปรแกรมภาษา C ให้แสดงผลตัวเลข Argument 5 ตัวที่ป่อน พร้อมทั้งแสดง address ของ argument ดังภาพ

![ผลลัพธ์ exercise2](https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MClo3nC-1US0rbK8Qau%2F-MP3A7Fs2eriyqs1fR1F%2F-MP3AHiWzTRV56KQrrbI%2Fimage.png?alt=media\&token=4aab6149-6f73-4407-a8eb-b5a41801878c)
