Simple and basic C program code

Convert given value in Meter to centimeter. #include <stdio.h> int main (void) { float length; printf("Enter Value for length in meter : "); scanf("%f",&length); printf("%.2fm equal to %.2fcm\n", length, length*100); return 0; } Calculate the volume of a cylinder. PI * r2 h #include <stdio.h> #define PI 3.1412 int main (void) { float radius, height, volume; /* Get value for radius */ printf("Enter the radius : "); scanf("%f",&radius); /* Get the value for height in Cylinder */ printf("Enter the height : "); scanf("%f", &height); /* Calculate the Volume */ volume = PI * radius * radius * height; printf("Volume of a cylinder %.2f\n", volume); return 0; } Calculate average marks of 4 subjects which, entered separately. #include <stdio.h> int main (void) { int sub1, sub2, sub3, sub4; double average; /* Get values */ printf("Ent...