/*Newly added tags for bing*/ Unipune Codes: 2018

Pages

Monday, 12 February 2018

Temperature Conversion using C

 
       
/*
Accept the temperature in Fahrenheit and print it in Celsius and kelvin using C.
*/
#include<stdio.h>
main()
{
    int f;
    float c,k;
    printf("Enter f - ");
    scanf("%d",&f);
    c=(f-32)*(0.55555555555);
    printf("Temperature in Celsius = %f\n",c);
    k=c+273;
    printf("Temperature in kelvin = %f\n",k);
}

Sunday, 11 February 2018

Accept the dimensions of a cylinder and print the surface area and the volume using C

/*
Accept the dimensions of a cylinder and print the surface area and the volume using C
*/
#include<stdio.h>
main()
{
    int r,h;
    float sa,v;
    printf("Enter r,h - ");
    scanf("%d%d",&r,&h);
    sa=2*(3.14)*r*(r+h);
    printf("Surface Area = %f",sa);
    v=(3.14)*r*r*h;
    printf(" Volume=%f",v);
}

Tuesday, 23 January 2018

Hello Word


Welcome to the world of coding. This is the very first program you'll face when you step in to the world of coding.
Happy Learning :)

Hello Word using C