Check this code simple code

/* Written by:Kishan Chaudhary
Name of project:
*/
#include <stdio.h>

int main(void) {

int num;
int result;

printf(“Enter integer/t”);
scanf("%d",num);

result=num/10;

printf(“Result is: %d”,result);

return 0;
}

Change scanf("%d",num) to scanf("%d",&num),your problem will be solved

And i was wondering what was the point of this question.

2 Likes

@vijju123 I guessed it from tag ‘runtime-error’ :stuck_out_tongue:

1 Like