New implementation

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating resource.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
#include <stdio.h>
#include <stdlib.h>
int n;
scanf("%d", &n);
printf("You entered %d\n", n);
#include <iostream>
std::cin >> n;
import std.stdio;
readf("%d", &n);
n = String.to_integer IO.gets ""
import "fmt"
_, err := fmt.Scan(&n)
import "fmt"
_, err := fmt.Scanf("%d", &n)
n <- (read :: String -> Int) <$> getContents
const {createInterface} = require('readline')

const rl = createInterface ({
  input: process.stdin,
  output: process.stdout

rl.question('Input an integer: ', response => {
  let n = parseInt (response)
  // stuff to be done with n goes here

import java.util.Scanner;
Scanner in = new Scanner(;
n = in.nextInt();
n ="n")
fscanf(STDIN, "%d\n", $n);
my $n = <> + 0;  # read a line from STDIN, add 0 to convert to int
input_var = int(raw_input("Input Prompting String: "))
n = gets.to_i
fn get_input() -> String {
    let mut buffer = String::new();
    std::io::stdin().read_line(&mut buffer).expect("Failed");

let x = get_input().trim().parse::<i64>().unwrap();
use std::io;
let mut input = String::new();
io::stdin().read_line(&mut input).unwrap();
let n: i32 = input.trim().parse().unwrap();