Posts

Showing posts from July, 2017

C++ program to find square root of a number

Image
C++ program to find square root of a number  Heloo guys today i will tell you how to make a C++ program that will find square root of a number..So the coding for this is not big its too small and is:- _________________________________________________________________________________ #include<iostream> #include<math.h> #include<conio.h> void main() { clrscr(); int a,b; cout<<"Enter the number whose square root you want:"; cin>>a; b=sqrt(a); cout<<"\t\t\tThe square root of "<<a<<" will be:"<<b; getch(); } _________________________________________________________________________________ So if you want to do more formatting then just go on.. You can also download the codding by clicking on download option When you will run this program the output screen will be like this:- If you want any other C++ program coding then comment below!!! #For more C++ codin...

C++ program to find factorial

Image
C++ program to find factorial Hello guys today i will tell how make a program that will find factorial of number.Factorial is the product of a integer and integers below it.it is represented by "!" mark.For example factorial of 5 will be:- 5!=5x4x3x2x1=120  So the coding for the factorial is:- ________________________________________________________________________________ #include<iostream.h> #include<conio.h> void main() { clrscr(); int a,i,b=1; cout<<"\t\t\t\tFACTORIAL CHART\t\t\t\t"; cout<<"\n\nEnter the number whose factorial you want:"; cin>>a; for(i=1;i<=a;i++) { b*=i; } cout<<"Factorial of the number will be:"<<b; getch(); } _________________________________________________________________________________ You can download the coding by clicking on downloading icon↴ So after downloading the file when you will run the program the output will be l...

C++ program to make a Fibonacci Series

Image
C++ program to generate Fibonacci Series Hello today I will tell you how make a C++ program which will generate Fibonacci series up to number you want to generate. First  I will tell you what is Fibonacci series, it is series which basically starts with 1 0 and 1 and then rest of the number are obtained by adding the two previous numbers. For example:- Soo I hope you are now clear with Fibonacci series now the coding to generate Fibonacci series is:- ______________________________________________________ #include<iostream.h> #include<conio.h> void main() {     clrscr() ;     int a,sum=0,x;     cout<<"\t\t\t\tFIBONACCI SERIES\t\t\t\t";     cout<<"\n\nEnter the number till where you want to generate Fibonacci series:";     cin>>x;     int f=0,s=1,n;     cout<<"\nThe Fibonacci series will be:"<<f<<en...

C++ coding to make a calculator

Image
C++ program to make a calculator Hello guyz today will tell you that how to make a C++ perform that will  perform that arithmetical operation  which are present in menu in sort it is a type of calculator only. The coding  is bit big but if u will try to read and understand. You will find it easy… So the programming for the calculator is _______________________________________________________________________________ #include<iostream.h> #include<conio.h> #include<math.h> void  main() { clrscr() ; char ch ; char name[20]; char chp; char ap; float a,b,c,d,e,result; cout<<"Enter the name of the user:"; cin>>name; cout<<"\t\t\t\t [1] Calculator Menu "; cout<<"\n1.Add(+)\n2.Subtraction(-)\n3.Multiply(*)\n4.Division(/)\n5.Pythagouros Therom(p)\n6.Exponent(e)"<<endl; cout<<"Enter the serial number of the operation you want to perform:"; cin>>ch; if(c...