Code::Blocks คำถาม & คำตอบ

โปรแกรมและแอปพลิเคชันสำหรับตรวจหาข้อผิดพลาดใน C, C++ และ Fortran
G
คำถามโดย Gregory
740 การดู
1

write a C++ program when an integer is entered by user and checks whether it is greater than 8 and less than 10 or not and prints the results

Swati Dubey
คำตอบโดย Swati Dubey

To write a C++ program that checks if an entered integer is greater than 8 and less than 10, you can use the following code:


#include
int main() {
int number;
std::cout << "Enter an integer: ";
std::cin >> number;
if (number > 8 && number < 10) {
std::cout << "The number is greater than 8 and less than 10." << std::endl;
} else {
std::cout << "The number is not in the specified range." << std::endl;
}
return 0;
}

This program prompts the user to enter an integer, checks the condition, and prints the result accordingly.

C
คำถามโดย Chuck H.
405 การดู
3
A
คำตอบโดย Alex Urbach

You’ve probably visited a wrong website, but the version 12.11 is available for downloading. I have checked all the possible links, and this version can be obtained through the page at SourceForge.


Visit the page, then click the Windows folder to download the necessary version: http://sourceforge.net/projects/codeblocks/files/Binaries/12.11/

G
คำถามโดย Guest
478 การดู
1
N
คำตอบโดย noureddine19

you must find the compatible version with your system , if you have vista 64 bits you must download a codeblock 64 bits

ดูคำถามและคำตอบเพิ่มเติม

ถามคำถามเกี่ยวกับ Code::Blocks

ตัวเลือกตัวโหลดอื่นๆ

.NET Reactor
rating

Distribute trial versions of your apps and protect your .NET source codes.

Simply Fortran
rating

A Fortran compiler, advanced development environment, and graphical debugger.

NAG Fortran Builder
rating

Integrated Development Environment (IDE).