Pages

Tuesday, 25 December 2012

TEMPERATURE CONVERSION


/* Temperature Conversion */
#include<stdio.h>
void main()
 {
  int t,k;
  float f;
  printf("Enter the temperature which you want to covert:\n");
  scanf("%d",&t);
  k=t+273;
  f=(t+32)*5/9;
  printf("The fareheit scale is %f and kelvin scale is %d",f,k);
 }




No comments:

Post a Comment