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

    Aug '21
  • last reply

    Aug '21
  • 1

    reply

  • 531

    views

  • 2

    users

I see you’ve not got AC - did you figure out your problem?