sami sam

sami sam

  • NA
  • 40
  • 30.2k

Write a program that asks a user to type in a number between 1 and 100. Tell the user if the number is valid.

Aug 17 2012 4:55 AM
It is not working I think my problem is in line 6 

include <stdio.h>

int n;

int main () {

                printf(":");

                scanf("%d",&n);

                if (n > = 1)&&(n <= 100){

                printf("the number is valid\n");

                }

}


Answers (3)