Help me in solving START01 problem

My issue

Runtime error

My code

#include <stdio.h>

int main() {
int N;
scanf("%d",N);
printf("%d",N);
	return 0;
}


Learning course: Basic programming & Data structures
Problem Link: Number Mirror Practice Problem in Basic programming & Data structures - CodeChef

scanf(“%d”,&N);
this is the correct way to use scanf function, you did not use “&”.

Hi.

The problem in your code is that you have not taken the input properly. To take input you must use & before the variable.

Instead of scanf(“%d”,N);
Use scanf(“%d”,&N);