ToMotion AI logo
Menu
Back to gallery

Public AI explainer video

C If Statement: Decision Making

Does your C code run every line, even when you want an action only in a certain situation? Think of rain: if it rains, you take an umbrella. In C, an...

Prompt

Source idea used to generate this video.

Use following content & Explain it in hindi but in romanhindi, dont use hindi hard words, use English words for English Terms. Explain in Tutor Style, Also dont write Hindi words while explaining, only English letters can be used. Control Flow Structures Decision Making if statement with example in Programming C

Narration

Narration used to create this video.

Video narration

Does your C code run every line, even when you want an action only in a certain situation? Think of rain: if it rains, you take an umbrella. In C, an if statement checks that condition. If it is true, the code inside runs. If false, the code is skipped. For example, if (rain == 1), printf says, "Take umbrella." Here, == compares; = assigns. Remember: true means run, false means skip-just like the umbrella decision.