# Lab 2-2 : Print Square Reference [謝宜紘Print Square](https://hackmd.io/@hsieh22/CA_lab1#Environment-setting) ###### tags: `CA2020` ## Rewrite Print Square C code ```C= # include <stdio.h> void _start() { int i, j; char out; volatile char* tx = (volatile char*) 0x40002000; for (i = 0; i < 5; i++){ for (j = 0; j < 5; j++){ out = 'x'; *tx = out; } out = '\n'; *tx = out; } } ~ ```    
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up