Day 26 of #100DaysOfCode
Learned how to write functions that return a value. Really pleased to have written some functions offhand π.
Making steady progress with #rustlang.
Up Next! How to write functions that return multiple values.
Day 28 of #100DaysOfCode
Completed two challenges on how to write functions that return integer values and arrays.
Been away for writing code over a week. Hoping to make this week better. π
#rustlang
Day 27 of #100DaysOfCode
Finally got back to coding after a week off. Learned how to write functions that:
β‘return multiple values
β‘use arrays as arguments
β‘ return arrays as result.
Will tackle the challenge for the "Functions" lesson next time.
Day 24 of #100DaysofCode
Started to learn about functions in #rustlang!
Now beginning to understand the relationship between function parameters, arguments, and calls.
Learned how to pass function values directly.
Next: Pass by reference!
Day 25 of #100DaysOfCode
Played more around functions and learned how to pass function value by reference.
e.g.
fn title (n: &mut i32){
*n = *n * *n
println!("The value of n within defined function = {}",n)
}
function call
let n = 5;
title(&mut n);
Slowly, but surely.
Day 23 of #100DaysofCode
Learned about Loop Labels used to identify loops that share similar properties, but used in the same block of code.
Also tried writing the Nested Loop for calculating the multiplication table.
Up Next. The Big One: Functions in #rustlang
Day 21 of #100DaysOfCode
Learned about indefinite loops "while" and "loop" where the number of iterations is not known at compile time.
Also learned how to use the break; statement.
Will learn about the "continue" statement in the next lesson
#rustlang#CodeNewbie
Yay! Day 20 of #100DaysOfCode π
Started learning about loops. Understood clearly for the first time that:
Definite loops == for
Indefinite loops == while, loop.
Also learned about the enumerated for method for loops.
Day 19 of #100DaysOfCode
Barely completed a challenge on how to build a calculator using the match construct learned in the previous.
Though I don't fully get it, it still felt good writing #rustlang code for one more day.
Up Next: Loops!
Day 18 of #100DaysOfCode
Learned about pattern matching using a defined scrutinee expression or simply using a value assigned to a variable.
Also learned how to match patterns to a result variable.
Next: Comparison of the different conditional constructs.
#Rust#rustlang