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 Fahrenheit to Celsius degrees.

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


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

Post a Comment

0 Comments