Question code : FCTRL
#include<stdio.h>
void main()
{
int t,input,zeroes,i ;
printf("\n No of test cases “);
scanf(”%d",&t);
printf("\n enter the data ");
for (i=0;i<t;i++)
{
scanf("%d",&input);
zeroes = 0 ;
while (input%10 == 0)
{
zeroes = zeroes + 1 ;
input = input/10 ;
}
printf("\n no of trailing zeroes : %d ",zeroes ) ;
}
}
created
last reply
- 1
reply
- 531
views
- 2
users