Program to Take Input and Print Output

Algorithm

Step 1: Start

Step 2: Declare an integer variable n

Step 3: Take input for n

Step 4: Print the value of n

Step 5: End

Flowchart

graph TD; A([Start]) --> B[Declare int n]; B --> C[/Input n/]; C --> D[/Print n/]; D --> E([End]); classDef start fill:#00cc44,stroke:#006622,stroke-width:2px,color:#ffffff; classDef stop fill:#ff4444,stroke:#cc0000,stroke-width:2px,color:#ffffff; classDef input_output fill:#ffdd44,stroke:#cc9900,stroke-width:2px,color:#000000; classDef process fill:#4488ff,stroke:#0044cc,stroke-width:2px,color:#ffffff; class A start; class E stop; class C,D input_output; class B process;

Program

#include<stdio.h>
int main()
{
    int n;
    scanf("%d", &n);
    printf("The number is: %d", n);
    return 0;
}
                

Test Case Output
 10
The number is: 10