Skip to content

Commit 561c76b

Browse files
committed
Week 1
1 parent c98ebf3 commit 561c76b

File tree

7 files changed

+55
-4
lines changed

7 files changed

+55
-4
lines changed

Diff for: Programs/hello

8.23 KB
Binary file not shown.

Diff for: Programs/hello.c

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Sonny Li
2+
// Intro to Programming in C
3+
4+
// $ gcc -Wall hello.c -o hello
5+
// $ ./hello
6+
7+
#include <stdio.h>
8+
9+
int main()
10+
{
11+
12+
printf("Hello, World!\n");
13+
14+
return 0;
15+
16+
}

Diff for: Programs/initials

8.23 KB
Binary file not shown.

Diff for: Programs/initials.c

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Sonny Li
2+
// Intro to Programming in C
3+
4+
#include <stdio.h>
5+
6+
int main()
7+
{
8+
9+
printf(" SSS L \n");
10+
printf("S S L \n");
11+
printf("S L \n");
12+
printf(" SSS L \n");
13+
printf(" S L \n");
14+
printf("S S L \n");
15+
printf(" SSS LLLLL \n");
16+
17+
return 0;
18+
19+
}

Diff for: Programs/pattern

8.23 KB
Binary file not shown.

Diff for: Programs/pattern.c

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Sonny Li
2+
// Intro to Programming in C
3+
4+
#include <stdio.h>
5+
6+
int main()
7+
{
8+
9+
printf(" 1\n");
10+
printf(" 2 3\n");
11+
printf(" 4 5 6\n");
12+
printf("7 8 9 10\n");
13+
14+
return 0;
15+
16+
}

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ Participants are expected to bring laptops and notebooks to class. Laptops can e
3030

3131
### Piazza ###
3232

33-
[www.piazza.com/columbia/summer2017/cpron0209](www.piazza.com/columbia/summer2017/cpron0209)
33+
[www.piazza.com/columbia/summer2017/cpron0209](https://www.piazza.com/columbia/summer2017/cpron0209)
3434

3535
### Programs ###
3636

37-
- [ ] `hello.c`
38-
- [ ] `pattern.c`
39-
- [ ] `initials.c`
37+
- [x] `hello.c`
38+
- [x] `pattern.c`
39+
- [x] `initials.c`
4040

4141
- [ ] `temp.c`
4242
- [ ] `bmi.c`

0 commit comments

Comments
 (0)