Code::Blocks Preguntas y respuestas

Programe y depure aplicaciones en C, C++ y Fortran
G
Pregunta de Gregory
744 vistas
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
Respuesta de 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.

A
Respuesta de 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/

N
Respuesta de noureddine19

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

Ver más preguntas y respuestas

Hacer una pregunta sobre Code::Blocks

Descargas alternativas

.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).