Computer Science, asked by prayag18, 1 year ago

wap to enter a number and check whether if it is a three digit number or not​


QGP: Which Programming Language do you want it in?

Answers

Answered by zoyasultana
1

Answer:

#include<stdio.h>

int main()

{

int num;

printf("Enter a number:");

scanf("%d"&num);

if(num>99 && num<1000)

{

printf("%d is a 3 digit number",num);

}

else

{

printf("%d is not a 3 digit number",num);

}

return 0;

}

Similar questions