Question user-673ae0d4048222ae in lesson «Variables and loops in C», course «Intro to C programming language»
int main(void) { int lower, upper, step, celsium, kelvin; lower = 0; upper = 300; step = 20;
celsium = lower;
while(celsium <= upper) {
kelvin = celsium + 273;
printf("%d : %d\n", celsium, kelvin);
celsium = celsium + step;
}
return 0;
}
Ответить
0
Use Hexlet to the fullest extent!
- Ask questions about the lesson
- Test your knowledge in quizzes
- Practice in your browser
- Track your progress
Sign up or sign in
Suggested learning programs
profession
Development of front-end components for web applications
10 months
•
from scratch
Start
at any time
profession
Layout with the latest CSS standards
5 months
•
from scratch
under development
Start
at any time
profession
new
Developing web applications with Django
10 months
•
from scratch
under development
Start
at any time