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
b8f1f837
Commit
b8f1f837
authored
Jan 16, 2014
by
Alan Marchiori
Browse files
added
parent
61e8fbd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
section01/Lec01/Activity/wordsandlines.c
0 → 100644
View file @
b8f1f837
#include <stdio.h>
int
main
(
void
)
{
int
words
=
3020
;
int
lines
=
350
;
printf
(
"There were %d words and %d lines, that is %lf words per line.
\n
"
,
words
,
lines
,
(
double
)
words
/
(
double
)
lines
);
if
(
words
>
2000
)
printf
(
"you wrote a lot
\n
"
);
printf
(
"here is your prize
\n
"
);
}
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