adsense

Hii, welcome to my site. My name is Om prakash kartik. This blog helps you to learn programming languages concepts.

Write a program in C to print 1 to 100 Celsius to Fahrenheit degrees.

Write a program in C to print 1 to 100 Celsius  to Fahrenheit degrees.

#include<stdio.h>
#include<conio.h>
   void main()
    {
      int c;
      float f;
       clrscr();
      printf("Celsius\t  Fahrenheit\n");
      for(c=1;c<=100;c++)
        {
         f=(c*9.9/5.0)+32;
         printf("\t%d\t%.2f\n",c,f);
      }
    getch();
    }



Output:

Post a Comment

0 Comments