C Program to print convert feet to meter

Hello coders, in this post we will how to write C Program to print convert feet to meter. This is a very basic C program.

As you already know that this site does not contain only c programming solutions here, you can also find the solution for other problems. I.e. Web Technology, Data StructuresRDBMS ProgramsJava Programs Solutions,  Fiverr Skills Test answersGoogle Course AnswersLinkedin AssessmentLeetcode Solutions, and Coursera Quiz Answers.

C Program to print convert feet to meter
C Program to print convert feet to meter

if you want to learn C programming free of cost please visit:

C Program to print convert feet to meter

// C Program to Convert Feet to Meters
#include <stdio.h>
int main(){
    float feet, meters;
    
    // Asking for input
    printf("Enter the length in feet: ");
    scanf("%f", &feet);
    
    // Conversion
    meters = feet / 3.28;
    
    // Display output
    printf("%.2f Feet = %.2f Meters", feet, meters);
    return 0;
}

Output

Enter the length in feet: 15
15.00 Feet = 4.57 Meters

Conclusion

I hope after going through this post, you understand how to write a C Program to print convert feet to meter, if there is any case program is not working and showing an error please let me know in the comment section.

Sharing Is Caring

Leave a Comment