Skip to content

Problem while running C #3

@muhmdfayasek

Description

@muhmdfayasek

I run a simple code, just to test acode for C. For recommend acode to my friends to learn C. When i run it, it shows a problem, didn't run perfectly.
int value; printf("Enter a value: "); scanf("%d", &value); printf("You entered: %d\n", value);

It only execute after i entered the value. Even the "Enter a value" portion. But if it's just a code with only a "printf" statement, it's fine, works perfectly. But not in code like given.

What is the problem. In the code runner or in my phone or in my code.

Here the images

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions