Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
#include <iostream>
#include<stdlib.h>
#include<time.h>
using namespace std;
int main()
{
srand(time(0));
int start = rand();
//health input for bahubali and thanos
int t,b;
cin>>t>>b;
int p = (abs(t-b)/((t+b)/2))*100;
if(p>5)
{
cout<<"Percentage is more than 5%"<<endl;
return 0;
}
else
{
cout<<"nskcnk"<<endl;
}
}