Program to tell whether the number entered is within 1 and 10 or not (C++)

#include <stdio.h>
#include <conio.h>
void main () {
int x;
printf(“Enter number:”);
scanf(“%d”,&x);
if (x>1 && x<10)
printf(“\nNumber is valid and between 1-10”);
else
printf(“Number is not valid!”);
getch();
}


“My posts/articles/images are not allowed to be stolen/copied anywhere at Cyber space. Doing so will allow me to take a legal action against the copier.”

Related Posts

Leave a Comment

Kindly solve the following puzzle to prove that you\'re not a bot: