Aptitude Question: Download Questions PDF
How many 9 digit no.s are divisible by 7
a.1256
b.1986
c.1524
d.1874
Answer:
Try this excel macro
Sub test()
k = 0
For i = 100000000 To 999999999
If (i Mod 7 = 0) Then
k = k + 1
End If
Next
Cells(1, 1) = k
End Sub
Ans:
128571428
Sub test()
k = 0
For i = 100000000 To 999999999
If (i Mod 7 = 0) Then
k = k + 1
End If
Next
Cells(1, 1) = k
End Sub
Ans:
128571428
Download Aptitude Interview Questions And Answers
PDF