why scanf not working in c compiler?

351


why scanf not working in c compiler?

#include <stdio.h>
int main(void)
{
int n;
printf("Enter any value");
scanf("%d",&n);
printf("\nGiven int %d",n);
return 0;
}

why scanf not working in c compiler?

7 Answers

2 years ago by

@Sujith S It's working as expected. You need to provide the inout in STDIN box

Check code here https://onecompiler.com/c/3ye9bdbc8

2 years ago by OneCompiler Support

try using cin >> "int"

2 years ago by SheepyAcademy

try using cin >> "int"

2 years ago by SheepyAcademy

try using cin >> "int"

2 years ago by SheepyAcademy

try using cin >> "int"

2 years ago by SheepyAcademy

try using cin >> "int"

2 years ago by SheepyAcademy

try using cin >> "int"

2 years ago by SheepyAcademy