From 68cb4d6cc79c733bd189a971863ac0f94b7501a7 Mon Sep 17 00:00:00 2001 From: Vinicius Silva Date: Fri, 22 Dec 2023 17:42:52 -0300 Subject: [PATCH] Insert types.v on 03_variables directory --- 03_variables/types.v | 12 ++++++++++++ 04_conditions/main.v | 3 --- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 03_variables/types.v diff --git a/03_variables/types.v b/03_variables/types.v new file mode 100644 index 0000000..3ad2009 --- /dev/null +++ b/03_variables/types.v @@ -0,0 +1,12 @@ + + + +fn main() +{ + mut integer := int(20) + mut flt32 := f32(2) + mut flt64 := f64(3) + + println(flt32) + println(integer) +} \ No newline at end of file diff --git a/04_conditions/main.v b/04_conditions/main.v index 8f71fa1..bc4e457 100644 --- a/04_conditions/main.v +++ b/04_conditions/main.v @@ -1,6 +1,3 @@ - - - pub fn main() { println('oi') } \ No newline at end of file