Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Courses
csci206_lecture_examples
Commits
05295287
Commit
05295287
authored
Jan 14, 2014
by
Alan Marchiori
Browse files
initial add
parent
fe61bee4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Act1/nogood.c
0 → 100644
View file @
05295287
/* nogood.c -- a program with errors
* Stephen Prata - C Primer Plus
*/
#include <stdio.h>
int
main
(
void
)
(
int
n
,
int
n2
,
int
n3
;
/*
this
program
has
several
errors
n
=
5
;
n2
=
n
*
n
;
n3
=
n2
*
n2
;
printf
(
"n = %d, n squared = %d, n cubed = %d
\n
"
,
n
,
n2
,
n3
)
return
0
;
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment