Code::Blocks Domande e risposte

Programma e fai il debug di applicazioni in C, C++ e Fortran
G
Domanda di Gregory
767 visualizzazioni
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
Risposta di 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
Domanda di Chuck H.
468 visualizzazioni
3
A
Risposta di 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
Domanda di Guest
540 visualizzazioni
1
N
Risposta di noureddine19

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

Vedi altre domande e risposte

Fai una domanda su Code::Blocks