Basic input output

Basic

file extension

.c

How to comment

single-line comment is

//text

multi-line comment

/**/

Output

#include <stdio.h>

How to print text

printf("hello world\n");

How to print text and a variable

printf("%d", varInt);

%d - int

%f - float

%lf - double

%c - char

Input

How to input data

int val;

scanf("%d", &val)