Tech Mahindra 2021 Non-SDE (3-6 Dec) Hands on Coding Question Asked with Solution | Part: 2 - Geometric Progression

 

Tech Mahindra 2021 Non-SDE (3-6 Dec) Hands on Coding Question Asked with Solution
Tech Mahindra 2021 Non-SDE (3-6 Dec) Hands-on Coding Question Asked with Solution

Join Our WhatsApp Group

Geometric Progression Question with Solution:

Geometric Progression In C++
// Solved By Pappu Kumar (Coder Guy)

#include <bits/stdc++.h>

using namespace std;
// Solved By Pappu Kumar (Coder Guy)
int main() {

    double second_term;

    double third_term;

    int n;

    cin>>second_term>>third_term>>n;

    double r = third_term/second_term;  //9/3=3

    double a = second_term/r;

    double nth_term = a * pow( r, n-1);
    cout<<nth_term;

return 0;

}
// Solved By Pappu Kumar (Coder Guy)


In Python

Coming Soon.....

Also, See,

Tech Mahindra 2021 Non-SDE (3-6 Dec) Hands-on Coding Question Asked with Solution | Part: 1 - BitWise Operation

Tech Mahindra 2021 Non-SDE (3-6 Dec) Hands-on Coding Question Asked with Solution | Part: 2 - Geometric Progression

Tech Mahindra 2021 Non-SDE (3-6 Dec) Hands-on Coding Question Asked with Solution | Part: 3 - Caesar Cipher

Tech Mahindra 2021 Non-SDE (3-6 Dec) Hands-on Coding Question Asked with Solution | Part: 3 - Frequency Count

Also, apply for jobs,

Google (STEP) Internship 2021

Tech Mahindra Foundation Intern 20/2021

Cadence Off-Campus Drive 20/2021 

H-Town Technologies Off-Campus Drive 20/2021

JK Technosoft Off-Campus Drive 2021

Techjockey Off-Campus Drive 2019-2020

Swiggy Off-Campus Drive 2018-2021

Microsoft Research Fellows Program 2020-2021

TCS Off-Campus Drive 2021

Also, Read the Latest Interview Experience, 

Tips to Follow to Crack Tech Mahindra Exam 2021

CTS - Cognizant 96 Important Interview Questions 2021

TCS Ninja and Digital 2021 All Interview Questions

Hexaware technical interview 2021 

Stay tuned with www.freshersocjob.com to receive more such updates on recruitment. Join our Telegram Channel and Join our WhatsApp Group To get Instant updates for All Recruitment Internships and Off-Campus of 2021 Pass-Out Batch and Other Batch.


Comments