Skip to content

Instantly share code, notes, and snippets.

View okekevicktur's full-sized avatar

Victor Okeke okekevicktur

View GitHub Profile
@okekevicktur
okekevicktur / fizzbuzznew.cairo
Last active August 22, 2025 09:47
Write a Cairo program that prints numbers from 1 to 100, with the following conditions: For multiples of 3: print "Fizz”. For multiples of 5: print "Buzz. For multiples of both 3 and 5: print "FizzBuzz”. For all other numbers: print the number itself. Mode of Submission: Github Gist
fn main() {
println!("FizzBuzz Program Output:");
println!("-------------------------");
println!("Fizz = multiple of 3");
println!("Buzz = multiple of 5");
println!("FizzBuzz = multiple of both 3 and 5");
println!("Numbers = all other cases\n");
let mut i:usize = 1;