Toggle navigation
Courses
Questions
Tags
Users
Is there a bug in this code that might cause it to behave differently than you'd expect?
3
like
0
dislike
202
views
#include <stdio.h>
int main()
{
double i = 14, j = 5, avg;
avg = i+j/2;
printf("Avg E %.2f\n", avg);
return 0;
}
References: C From Theory
basic
essay
[Normal]
Essay (Open question)
-
asked
Jan 18, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21760 -
Available when:
Unlimited
-
Due to:
Unlimited
edited
Jan 18, 2017
by
The Contributor
|
202
views
comment
Please
log in
or
register
to add a comment.
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English
中文
Tiếng Việt
IP:108.162.216.240©2016-2024
Related questions
2
like
0
dislike
0
answers
Write a program that reads the name, the code, and the price of a product and displays them.
[Normal]
Essay (Open question)
-
asked
Jan 18, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21763 -
Available when:
Unlimited
-
Due to:
Unlimited
|
246
views
basic
essay
3
like
0
dislike
0
answers
In the line "int main()" the parentheses indicate that main is a program building block called a...?
[Normal]
Multichoice
-
asked
Jan 18, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21742 -
Available when:
Unlimited
-
Due to:
Unlimited
|
606
views
basic
multi-choice
2
like
0
dislike
0
answers
Write a program that reads a float number and displays the previous and next integers
[Normal]
Essay (Open question)
-
asked
Jan 18, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21765 -
Available when:
Unlimited
-
Due to:
Unlimited
|
401
views
basic
essay
2
like
0
dislike
0
answers
Write a program that reads the prices of three products and displays their average.
[Normal]
Essay (Open question)
-
asked
Jan 18, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21764 -
Available when:
Unlimited
-
Due to:
Unlimited
|
226
views
basic
essay
2
like
0
dislike
0
answers
Write a program that reads an integer and a float number and displays the triple of their sum.
[Normal]
Essay (Open question)
-
asked
Jan 18, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21762 -
Available when:
Unlimited
-
Due to:
Unlimited
|
420
views
basic
essay
12,783
questions
183,443
answers
172,219
comments
4,824
users