Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Courses
csci206_lecture_examples
Commits
a61ade76
Commit
a61ade76
authored
Jan 20, 2014
by
Alan Marchiori
Browse files
lec02 post class commit
parent
7817b51f
Changes
2
Hide whitespace changes
Inline
Side-by-side
section01/Lec01/Activity/nogood.c
View file @
a61ade76
/* nogood.c -- a program with errors
* Stephen Prata - C Primer Plus - Listing 2.4
*/
#include <stdio.h>
int
main
(
void
)
(
int
n
,
int
n2
,
int
n3
;
{
int
n
;
int
n2
;
int
n3
;
/*
this
program
has
several
errors
/* this program has several errors
*/
n
=
5
;
n2
=
n
*
n
;
n3
=
n2
*
n
2
;
n3
=
n2
*
n
;
printf
(
"n = %d, n squared = %d, n cubed = %d
\n
"
,
n
,
n2
,
n3
)
printf
(
"n = %d, n squared = %d, n cubed = %d
\n
"
,
n
,
n2
,
n3
)
;
return
0
;
)
}
section01/Lec02/Lec02.odp
View file @
a61ade76
No preview for this file type
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