Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // fix paste
- struct Point {
- pub x: f32,
- pub y: f32,
- }
- struct Circle {
- pub center: Point,
- pub radius: f32,
- }
- struct Uuid {
- repr: u128,
- }
- fn square(x: f64) -> f64 {
- x * x
- }
- fn gcd(a: u32, b: u32) -> u32 {
- if b == 0 {
- return a;
- }
- gcd(b, a % b)
- }
- fn main() {
- // Prints four lines
- for i in 0..4 {
- println!("line {}", i);
- }
- }
Add Comment
Please, Sign In to add comment