not much to show for this one, but I'm pretty sure I get it :-P
This commit is contained in:
parent
7f11279bfd
commit
7532ba866a
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
||||
gowrikumar/*
|
||||
gowrikumar/00-sizeof
|
||||
gowrikumar/02-dowhile
|
||||
|
20
gowrikumar/02-dowhile.c
Normal file
20
gowrikumar/02-dowhile.c
Normal file
@ -0,0 +1,20 @@
|
||||
/**
|
||||
* :author: Dan Buch (daniel.buch@gmail.com)
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
int i = 1;
|
||||
do
|
||||
{
|
||||
printf("%d\n", i);
|
||||
} while(++i < 15);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* vim:filetype=c:fileencoding=utf-8
|
||||
*/
|
@ -1,10 +1,12 @@
|
||||
# puzzles from http://www.gowrikumar.com/c/
|
||||
|
||||
|
||||
all: 00-sizeof
|
||||
all: 00-sizeof 02-dowhile
|
||||
|
||||
|
||||
00-sizeof: 00-sizeof.o
|
||||
|
||||
00-dowhile: 00-dowhile.o
|
||||
|
||||
|
||||
.PHONY: all
|
||||
|
Loading…
Reference in New Issue
Block a user