write program to accept a positive number check and print whether a number is triple digit or not
Answers
Answered by
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
Biology,
6 months ago
English,
6 months ago
Physics,
6 months ago
Social Sciences,
1 year ago
Math,
1 year ago