## 6. C++ Program to calculate square root of any number

#include<iostream> #include using namespace std; int main() { float sqr,num; cout<“Enter any number :: “; cin>>num; sqr=sqrt(num); cout<<“\n\nSquare root is ::”<<sqr; return 0; }

## 5. C++ Program to find Compound Interest

#include<iostream> #include<math.h> using namespace std; int main() { float p,r,t,ci; cout<<“Enter Principle, Rate and Time:: “; cin>>p>>r>>t; ci=p*pow((1+r/100),t); cout<<“\nCompound Interest = “<<ci; return 0; }

## 4. C++ Program to Find ASCII value of a character

#include<iostream> using namespace std; int main() { char ch; cout<<“Enter any Character :: “; cin>>ch; cout<<“ASCII value is “<<int(ch); return 0; }

## 3. C++ Program to convert given inches into equivalent yard,feet and inches

#include<iostream> using namespace std; int main() { int yard, feet, inch; cout<<“Enter Inches :: “; cin>>inch; yard = inch/432; inch %= 432; feet = inch /12; inch%=12; cout<<” Yard :: “<<yard<<“\n Feet :: “<<feet<<“\n Inches :: “<<inch; return 0; }

## 2. C++ Program to raise any number x to a positive power n

#include<iostream> #include<math.h> using namespace std; int main() { int num, p, res; cout<<“Enter value : “; cin>>num; cout<<“Enter Power : “; cin>>p; res = pow(num,p); cout<<“Result ” <<res; return 0; }

## 1. C++ Program to calculate sum and average of two numbers

#include<iostream> using namespace std; int main() { int a, b, sum; float avg; cout<<“Enter Two Numbers”; cin>>a>>b; sum = a + b; avg = sum / 2; cout<<“Sum of two numbers :: ” <<sum<<endl; cout<<“Avg of two numbers :: “<<avg; return 0; }