mirror of
https://codeberg.org/andyscott/exercism.git
synced 2024-11-14 23:30:48 -05:00
20 lines
237 B
C
20 lines
237 B
C
|
#ifndef SPACE_AGE_H
|
||
|
#define SPACE_AGE_H
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
typedef enum planet {
|
||
|
MERCURY,
|
||
|
VENUS,
|
||
|
EARTH,
|
||
|
MARS,
|
||
|
JUPITER,
|
||
|
SATURN,
|
||
|
URANUS,
|
||
|
NEPTUNE,
|
||
|
} planet_t;
|
||
|
|
||
|
float age(planet_t planet, int64_t seconds);
|
||
|
|
||
|
#endif
|