Home
О нас
Products
Services
Регистрация
Войти
Поиск
pollik2003
@pollik2003
August 2021
1
4
Report
Составьте программу, определяющую, является ли целое положительное число трехзначным
Please enter comments
Please enter your name.
Please enter the correct email address.
Agree to
terms of service
You must agree before submitting.
Send
Answers & Comments
PUPD
Pascal:
var
n : integer;
begin
if n >= 100 then
write('Да, трехзначное');
else
write('Нет, не трехзначное');
readln; readln; // для паузы
end.
p.s. За синтаксические ошибки не отвечаю
==============================
C++:
#include <iostream>
int main() {
//Если нужен русский язык на выводе написать здесь: setlocale(LC_ALL, "rus");
int n;
cin >> n;
if (n>=100) {
cout << "Yes";
} else {
cout << "No";
}
system("pause"); // Для паузы
return 0;
}
0 votes
Thanks 0
×
Report "Составьте программу, определяющую, является ли целое положительное число трехзна..."
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
Helpful Links
О нас
Политика конфиденциальности
Правила и условия
Copyright
Контакты
Helpful Social
Get monthly updates
Submit
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var
n : integer;
begin
if n >= 100 then
write('Да, трехзначное');
else
write('Нет, не трехзначное');
readln; readln; // для паузы
end.
p.s. За синтаксические ошибки не отвечаю
==============================
C++:
#include <iostream>
int main() {
//Если нужен русский язык на выводе написать здесь: setlocale(LC_ALL, "rus");
int n;
cin >> n;
if (n>=100) {
cout << "Yes";
} else {
cout << "No";
}
system("pause"); // Для паузы
return 0;
}