Tcs Coding Questions 2021 _verified_ ✧

#include <iostream> using namespace std;

Odd positions: powers of 2 → 2^(0), 2^(1), 2^(2)... Even positions: powers of 3 → 3^(1), 3^(2), 3^(3)... Tcs Coding Questions 2021

public class Main public static void main(String[] args) Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int rev = 0; using namespace std