-7

I need to convert this code to an hours

func convert_to_seconds(hours: Int) -> Int {
    // write your code here
    }

the input is:

 hours = 6

the output is:

 21600

I tried several codes but they didn't work for me

Reema
  • 1
  • 1

1 Answers1

0
func convert_to_seconds(hours: Int) -> Int {
    hours*3600
}