C programming · Lesson
Observe how a sequence in the flowchart becomes a sequence of C statements executed in the same order.
A program moves from one statement to the next unless a control structure changes the flow.
START → output 1 → output 2 → END
Use Start and Step: when the active block changes, ConceptStep also highlights the C lines representing that same step.
Run C executes only the example shown on the left, using stdin on the right. The coding challenge below has a separate editor and test button.
1#include <stdio.h>
2
3int main(void)
4{
5 printf("Prima istruzione\n");
6 printf("Seconda istruzione\n");
7 return 0;
8}
Read a number and print double then triple on two lines.
This is a different program from lab 1. Complete the starter code: Check all test cases compiles this editor and tests every input, including boundary cases.
Which message is printed first?
Challenge 1 / 5 · Understanding
Progress: 0 / 5 · correct: 0
ConceptStep separates what is required from what is recommended or useful as reinforcement. Only required prerequisites block your progress.