Skip to content

Commit

Permalink
Initial Content
Browse files Browse the repository at this point in the history
  • Loading branch information
ramagururadhakrishnan authored Apr 4, 2024
1 parent 66e7ce7 commit 169c5e6
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Assets/Lectures/RL1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 20CYS312 - Principles of Programming Languages
![](https://img.shields.io/badge/Batch-21CYS-lightgreen) ![](https://img.shields.io/badge/UG-blue) ![](https://img.shields.io/badge/Subject-PPL-blue) <br/>
![](https://img.shields.io/badge/Lecture-2-orange) ![](https://img.shields.io/badge/Practical-3-orange) ![](https://img.shields.io/badge/Credits-3-orange)

## Lecture 1 - Introducton to Rust Programming
![](https://img.shields.io/badge/-1st_Apr-orange)


### Hello World Program

```
fn main() {
println!("Hello, world!");
}
```

### Example 1
```
use std::io;
fn main() {
println!("Guess the number!"); // Macro call
println!("Please input your guess.");
let mut guess = String::new(); // Mutable Var.
io::stdin() // instance
.read_line(&mut guess) // Ok / Err
.expect("Failed to read line");
println!("You guessed: {guess}");
}
```

0 comments on commit 169c5e6

Please sign in to comment.