Question user-673ae0d4048222ae in lesson «Variables and loops in C», course «Intro to C programming language»


include <stdio.h>

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;


1 0

Ivan Gagarinov

user-673ae0d4048222ae, good afternoon! Tell me, do you have a question about this lesson?


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

By sending this form, you agree to our Personal Policy and Service Conditions
Suggested learning programs

From a novice to a developer. Get a job or your money back!

Frontend Developer icon
Development of front-end components for web applications
start anytime 10 months
Layout Designer icon
New Under development beginner
Layout with the latest CSS standards
start anytime 5 months