Open vimalswaroopj opened 5 years ago
use std::io;
fn read()->i32 {
let mut num=String::new();
io::stdin()
.read_line(&mut num)
.expect("Error");
num.trim()
.parse::
fn main() { println!("Enter n"); let n = read(); // let size = read() as usize; for i in 0..n { for j in 0..i { print!("*"); } println!("\n"); } }
use std::io; fn main() { let mut s = String::new(); io::stdin().read_line(&mut s).expect(""); let n: i32 = s.parse().unwrap(); let mut x: i32; x=n; let mut y: i32; y=1; for i in 0..n {
}