Computer Science, asked by chiragkurtakoti, 4 months ago

Write a function that takes 2 inputs - A string and an
integer flag (Value can be 0 or 1)
• If the flag value is 'O' the function should return
all the characters at even place in the input string
• If the flag value is 'l'the function should return
all the characters at odd place in the input string

Answers

Answered by alugubellymadhuri
1

Answer:

Function1("TRACXN",0)="RCN"

Function2("TRACXN",1)="TAX"

Similar questions