Source Code : #include<iostream> #include<stdio.h> using namespace std; u…
Source Code : #include<iostream> #include<stdio.h> using namespace std; i…