1 votes 1 votes Consider the following C program? void mystery(int n){ if(n<=0) return; printf("%d", 0); mystery(n-1); mystery(n-2); } int main(){ int n=10; mystery(n); return 0; } The number of ‘0’s printed by above program is ? Algorithms gate-suitability-test-1 recursion numerical-answers + – Arjun asked Jun 10, 2018 • recategorized Jun 7, 2022 by Arjun Arjun 152 views answer comment Share Follow See 1 comment See all 1 1 comment reply AniketThomas commented Jun 7, 2022 reply Follow Share T(n) = T(n-1) + T(n-2) + 1 ; T(0) = 0, T(1) = 1 T(2) = 1 + T(1) + T(0) = 1 + 1 + 0 = 2 T(3) = 1 + T(2) + T(1) = 1 + 2 + 1 = 4 ….. T(10) = 1 + T(9) + T(8) = 143 1 votes 1 votes Please log in or register to add a comment.