Program to find curved and total surface area and volume of a cylinder in C

Program

#include <stdio.h>
int main()
{
    float r, h, tsa, csa, v;
    printf("******************************************************************");
    printf("\n******************************************************************");
    printf("\n** WAP to find curved & total surface area & volume of cylinder **");
    printf("\n**                       Created by Sheetal Garg                **");
    printf("\n**                         Assistant Professor                  **");
    printf("\n**                         Phone No:9467863365                  **");
    printf("\n******************************************************************");
    printf("\n******************************************************************");
    printf("\nenter radius and height of cylinder");
    scanf("%f%f", &r, &h);
    tsa = 2 * 3.14 * r * (r + h);
    csa = 2 * 3.14 * r * r + (2 * 3.14 * r * h);
    v = 3.14 * r * r * h;
    printf("total surface area is : %f\n", tsa);
    printf("curved surface area is : %f\n", csa);
    printf("volume is : %f\n", v);
    return 0;
}

Output

******************************************************************
******************************************************************
** WAP to find curved & total surface area & volume of cylinder **
**                       Created by Sheetal Garg                **
**                         Assistant Professor                  **
**                         Phone No:9467863365                  **
******************************************************************
******************************************************************
enter radius and height of cylinder
5
10
total surface area is : 471.000000
curved surface area is : 471.000000
volume is : 785.000000
error: You can only copy the programs code and output from this website. You are not allowed to copy anything else.