3
Answers

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

sami sam

sami sam

12y
1k
1
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)