TCS
Company
Programming
Program
-1,0 or 2 in box1 and -A in box 2, A,(A-1),(A+1) box3
get A(A-1)(A-1)A in box-2 and in 3 steps,Use all operations
Read Solution (Total 3)
-
- 1 step: (a-1)^2
(a-1)fom b3 and 2 from b1
step 2: b2*a
from b3
step 3:
b2*-1 from b1
B1=0
B2=A*(A-1)*(A-1)*A
B3=A+1 - 8 years agoHelpfull: Yes(5) No(1)
- step-1 : (A-1)^2
step-2 : (-A)^2
step-3 : multiply both - 7 years agoHelpfull: Yes(1) No(1)
- #include
int main()
{
int n=5,j=3,k=2;
for(int i=1;i - 6 years agoHelpfull: Yes(0) No(2)
TCS Other Question
Five friends Alex,Bill,Cole ,dan & ed visit a few places taking different routes.All cities are visted by diff number of people.The 5 cities F,G,H,I & J are sequentically statoned.Dan takes the direct route to I and visits two places,F is visted by least no. of people.Bill visits G,but not I,& I visted by odd number of people,If dan visits J,Ed also vists J.Cole dosn't vist H.Alex vists all the places.Ed visits lesser cities then cole.what is the ROUTE followed by ED?
a)G,H,J
b.G,I,J
c.G,J
d.none
consider the sequence 1,-2, 3, -4, 5 what is the average of first 200 terms