Tuesday, 29 August 2017

C Program for Converting Celcius to Farenheit

/* Convert Celcius to Farenheit */

#include<stdio.h>
int main()
{
    float c,f;
    printf("Type celcius: ");
    scanf("%f",&c);
    f = c * 9/5 + 32;
    printf("farenheit: %f",f);
    return 0;
}

No comments:

Post a Comment

C-Program to know whether the character is vowel or not

#include<stdio.h> int main() {   char c;   printf("Enter a character to know whether it is vowel or not\n");   scanf("...