Skip to content

Instantly share code, notes, and snippets.

@Dastagirireddy
Dastagirireddy / playground.rs
Created November 17, 2018 11:02 — forked from rust-play/playground.rs
Code shared from the Rust Playground
extern crate num; // 0.2.0
use num::{Zero, One};
use std::ops::{Shr, BitAnd};
fn main() {
let mut foo: Vec<u32> = vec![5, 3, 8, 10, 1093, 283, 5734, 7383, 3273, 18];
unsigned_radix_sort(&mut foo);
println!("{:?}", foo);
#include <stdio.h>
#include "stdio.h"
int main()
{
int y;
puts("Enter the year:");
scanf("%d",&y);
if((y%4==0 && y%100!=0) || y%400==0)
{
printf("Leap year");