#include<stdio.h> int code(int m){ if(m>0){ int i=1; for(;i<3;i++){ code(m-i); code(m-i-1); printf("GATE2019"); } } } int main() { code(4); return 0; }
How many times GATE2019 will be printed?
https://gateoverflow.in/234607/madeeasy-test-series chk this.