Accenture coding questions asked in February slots #accenture #coding #programming

preview_player
Показать описание
This video contains solved coding questions from Accenture exam.
0:0:09 Course of video
0:0:56. Trailing zeros question
0:3:15 Code of Trailing zeros
0:4:52. double factorial question
0:6:14. code of double factorial
0:8:16 De arrangements question
0:11:4 code of de arrangements
0:13:00 Passing public cases without logic or coding knowledge
Рекомендации по теме
Комментарии
Автор

import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner in= new Scanner(System.in);
int n=in.nextInt();
int fact=1, count=0;
for(int i=1;i<=n;i++)
{
fact=fact*i;
}
of "+ n+ " is "+ fact);
String str= Integer.toString(fact);
//System.out.println(str);
for(int i=str.length()-1;i>=0;i--)
{
if(str.charAt(i)=='0')
{
count++;
}
else
{
break;
}
}
System.out.println("Count "+count);
}
}

UchhihaMadara
Автор

Do we get same questions in the same slot in accenture first round ??

zara
welcome to shbcf.ru