tubeshowcase●1,165,017 videos♡ My collection 0
← Learn to Code

Learn to Code03:51

C while loops ♾️

Bro Code ↗

From the creator

C while loops tutorial example explained #C #while #loop int main() { // while loop = repeats a section of code possibly unlimited times. // WHILE some condition remains true // a while loop might not execute at all char name[25]; printf("\nWhat's your name?: "); fgets(name, 25, stdin); name[strlen(name) - 1] = '\0'; while(strlen(name) == 0) { printf("\nYou did not enter your name"); printf("\nWhat's your name?: "); fgets(name, 25, stdin); name[strlen(name) - 1] = '\0'; } printf("Hello %s", name); return 0; }

Published 2021-10-06 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code