Computer Science, asked by paromita09, 1 year ago

write program to accept a positive number check and print whether a number is triple digit or not​

Answers

Answered by pavithranatarajan855
0

Answer:

#include<stdio.h>

int main()

{

int n,count=0,temp;

printf("enter positive number");

scanf("%d",&n);

temp=n;

while(n>0){

n=n/10;

count++;

}

if(count==3)

printf("%d is trible digit",temp);

else

printf("%d is not a trible digit",temp);

}

Explanation:

I think this is helpful for you

please mark me as brainliest

Similar questions