checkeo 0.1.5

This is a function check to even or odd number.
Documentation
// pub struct Circle {
//   pub n: i32,
// }

// pub trait Info {
//   fn info_new(n: i32) -> Self;
//   fn even_or_odd(&self) -> String;
// }

// impl Info for Circle {
//   fn info_new(n: i32) -> Circle {
//     Circle { n: n }
//   }
//   fn even_or_odd(&self) -> String {
//     if self.n % 2 == 0 {
//       return "even".to_string();
//     } else {
//       return "odd".to_string();
//     }
//   }
// }

pub fn even_or_odd(n: i32) -> String {
  if n % 2 == 0 {
    return "even".to_string();
  } else {
    return "odd".to_string();
  }
}