Lecture#5 Print Counting with While Loop using Visual Studio 2022 in Urdu / Hindi

Опубликовано: 03 Апрель 2026
на канале: ST Learning Training Institute
11
2

In Visual Studio 2022, you can use a while loop to count and print numbers in your program. Start by creating a new console application project. In the Main method, initialize a counter variable to 1. Use a while loop to iterate as long as the counter is less than or equal to a specified limit. Inside the loop, print the current value of the counter and then increment it. This loop will execute and print numbers until the condition is no longer true.