ещё изменения
This commit is contained in:
parent
a289ebb8d9
commit
afaf85d24d
19
L9-1.cpp
19
L9-1.cpp
@ -15,15 +15,7 @@ void print10_1() {
|
|||||||
printf("%d ", a);
|
printf("%d ", a);
|
||||||
a -= 1;
|
a -= 1;
|
||||||
} while (a >= 1);
|
} while (a >= 1);
|
||||||
}
|
}//commit
|
||||||
void print5Odds() {
|
|
||||||
int a = 1;
|
|
||||||
int i = 1;
|
|
||||||
do {
|
|
||||||
printf("%d ", a);
|
|
||||||
a += 2;
|
|
||||||
i += 1;
|
|
||||||
} while (i <= 5);
|
|
||||||
}
|
}
|
||||||
void print100_10_while() {
|
void print100_10_while() {
|
||||||
int a = 100;
|
int a = 100;
|
||||||
@ -40,7 +32,7 @@ void print1000_100_while() {
|
|||||||
a -= 100;
|
a -= 100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//çäåñü ìîãëà áûòü âàøà ðåêëàìà
|
||||||
void print1000_25_while() {
|
void print1000_25_while() {
|
||||||
int a = 1000;
|
int a = 1000;
|
||||||
while (a >= 0) {
|
while (a >= 0) {
|
||||||
@ -49,14 +41,7 @@ void print1000_25_while() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
void main() {
|
|
||||||
SetConsoleCP(1251);
|
|
||||||
SetConsoleOutputCP(1251);
|
|
||||||
int n;
|
|
||||||
do {
|
|
||||||
|
|
||||||
çäåñü ìîãëà áûòü âàøà ðåêëàìà
|
|
||||||
printf("\n");
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
printf("Âûáåðèòå íóæíóþ âàì îïåðàöèþ\n");
|
printf("Âûáåðèòå íóæíóþ âàì îïåðàöèþ\n");
|
||||||
printf("1: Âûâåñòè ÷èñëà 1 äî 10\n");
|
printf("1: Âûâåñòè ÷èñëà 1 äî 10\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user