dev-resources.site
for different kinds of informations.
while loop
Published at
11/2/2024
Categories
cpp
programming
coding
beginners
Author
Sanjar Rashidov
Main Article
Loop - halqa degani.
"While loop"ga bergan shartimiz noto'gri bo'lgunigacha "while loop"ga kiradi va berilgan ishni qayta bajaradi.
Syntax of while loop:
while(comdition)
{
statement
increament/decreament;(++/--)
}
Masalan:
#include <iostream>
using namespace std;
int main()
{
int n = 1;
while(n <= 7)
{
cout << n << endl;
n++;
}
return 0;
}
Articles
12 articles in total
IL (Intermediate Language)
read article
CLR (Common Language Runtime)
read article
SDK vs Runtime
read article
.Net tarixi
read article
Arrays
read article
Function
read article
for loop
read article
do while loop
read article
Nested while loop
read article
while loop
currently reading
switch
read article
if else
read article
Featured ones: