Toggle navigation
Courses
Questions
Tags
Users
Basic display practice with float numbers
3
like
0
dislike
195
views
Write a program that reads a float number and displays the previous and next integers.
Sample Input:
3.1416
Sample Output:
3
4
References: C From Theory
basic
coding
float
[Normal]
Coding (C)
-
asked
Jan 25, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21793 -
Available when:
Unlimited
-
Due to:
Unlimited
|
195
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:172.70.131.70©2016-2024
Related questions
3
like
0
dislike
0
answers
Display the integer and decimal part of a float number.
[Normal]
Coding (C)
-
asked
Jan 25, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21795 -
Available when:
Unlimited
-
Due to:
Unlimited
|
233
views
basic
coding
float
3
like
0
dislike
0
answers
Basic loop + array practice
[Normal]
Coding (C)
-
asked
Feb 8, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21876 -
Available when:
Unlimited
-
Due to:
Unlimited
|
207
views
basic
arrays
float
loop
3
like
0
dislike
0
answers
Basic編譯執行及運算基礎觀念 (#59)
[Normal]
True/False
-
asked
Feb 11, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21918 -
Available when:
Unlimited
-
Due to:
Unlimited
|
221
views
chinese
basic
truefalse
arrays
float
5
like
0
dislike
0
answers
Basic string practice with limit characters
[Normal]
Coding (C)
-
asked
Feb 19, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21974 -
Available when:
Unlimited
-
Due to:
Unlimited
|
237
views
coding
string
char
c
input
output
scanf
printf
3
like
0
dislike
0
answers
Open question for coding practice (English #2)
[Normal]
Essay (Open question)
-
asked
Feb 12, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21926 -
Available when:
Unlimited
-
Due to:
Unlimited
|
229
views
coding
essay
basic
pointer
12,783
questions
183,443
answers
172,219
comments
4,824
users