Ask coding questions

← Back to all posts
help if u can please
lrehman887 (0)

So, i'm taking a cs class and I need to code whats written down bellow. I've written some code for it but I don't think its correct if someone could look at it that would be great.

(Write a program that contains a function names feet_to_inches(). This function accepts a number of feet as an argument, AND returns the number of inches in that many feet.You program should ask the user for the number of feet as input. Then pass that value as an argument to your function. After the function calculates the number of inches YOU MUST return the number of inches to the calling function (in this case your main code) and print out a message stating the number of inches.)

Commentshotnewtop
ash15khng (415)

Do you know how to create a function?

ash15khng (415)

@Vandesm14 Huh ok that's weird I only remember posting once.

Vandesm14 (754)

@ash15khng I'll be right back posts to bugs.

ash15khng (415)

@Vandesm14 Oops I deleted the comment tho.

Vandesm14 (754)

@ash15khng Ah Ok. Well then. Cool.