---
title: "Discussion on \"Different ways to use println! macro in Rust\" | Hashnode"
description: "Discussion on \"Different ways to use println! macro in Rust\". Print line which will just print something , but it is not as simple as we see it . It has various types within itself.\nPrinting a variable\nfn main() {\n    let a = 10 ; \n    println!(\"The value of the variable a is: {} \" , a );\n    //The fn main() in..."
url: "https://hashnode.com/posts/ways-to-use-println-in-rust/65981521c22d321fff4af81f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Different ways to use println! macro in Rust](https://dishaan195.hashnode.dev/ways-to-use-println-in-rust?utm_source=hashnode&utm_medium=feed)

Print line which will just print something , but it is not as simple as we see it . It has various types within itself. Printing a variable fn main() { let a = 10 ; println!("The value of the variable a is: {} " , a ); //The fn main() in...

Jan 5, 2024 · 3 min read · dishaan195.hashnode.dev  
Updated Jun 20, 2024  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#beginner](https://hashnode.com/tag/beginner)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Dishaan](https://hashnode.com/@dishaan195)

@dishaan195 · Asia

  
[View profile](https://hashnode.com/@dishaan195)

student learning software programming

I am a Student from Asia learning about software. I am really eager to defeat challenges( even though I don't know about them) learn new facts and I like mathematics and it's infinityness

## Responses 1

Markdown supported · ⌘↵ to post

[Dishaan](https://hashnode.com/@dishaan195)

[Jan 5, 2024](https://hashnode.com/posts/ways-to-use-println-in-rust/65981521c22d321fff4af81f/comment/65981750236889da2da926e4)

hello
