Read and write int value in console
#include <stdio.h> int main(void) { int i; printf("Enter a number: "); scanf("%d", &i); printf("%d", i * i); return 0; }