Source Code Examples in the c++:
Formula for the
(a+b)2 =a2 +2ab+b2
#include<iostream>
using namespace std;
void main()
{ //start of main
int a;
int b;
int result;
cout<<" Enter Value of a"<<endl;
cin>>a;
cout<<" Enter Value of b"<<endl;
cin>>b;
result=( (a*a)+2*a*b+(b*b));
cout<<" The Result is : "<<result<<endl;
system("pause"); //this is use to stope console screen
} //end of main
_____________________________Example 2_______________________________________
Formula for the
(a-b)2 =a2 -2ab+b2
using namespace std;
void main()
{ //start of main
int a;
int b;
int result;
cout<<" Enter Value of a"<<endl;
cin>>a;
cout<<" Enter Value of b"<<endl;
cin>>b;
result=( (a*a)-2*a*b+(b*b));
cout<<" The Result is : "<<result<<endl;
system("pause"); //this is use to stope console screen
} //end of main
_____________________________Example 3_______________________________________
Formula for the
a3+b3=(a+b)( a2-ab+b2)
#include<iostream>
using namespace std;
void main()
{ //start of main
int a;
int b;
int result;
cout<<" Enter Value of a"<<endl;
cin>>a;
cout<<" Enter Value of b"<<endl;
cin>>b;
result=((a+b)*( (a*a)-a*b+(b*b)));
cout<<" The Result is : "<<result<<endl;
system("pause"); //this is use to stope console screen
} //end of main
_____________________________Example 4_______________________________________
Formula for the
a3-b3=(a-b)( a2+ab+b2)
#include<iostream>using namespace std;
void main()
{ //start of main
int a;
int b;
int result;
cout<<" Enter Value of a"<<endl;
cin>>a;
cout<<" Enter Value of b"<<endl;
cin>>b;
result=((a-b)*( (a*a)+a*b+(b*b)));
cout<<" The Result is : "<<result<<endl;
system("pause"); //this is use to stope console screen
} //end of main
TAGS:
c++, tutorial, programming, program, learn, cpp, basics, beginner, introduction, tpayne, lets, let's, computer science, guide, series, begin, intro, intermediate, beginners, types, data, variables, simple, how, to, c++ language, input, compiler, c (programming language), c++ tutorial, c++ programming, functions, pointers, operator, experience, nested if statements in c++,22,30], nested if-else in c++ example, arrays, hacking, while loop, technology, switch, if, string, computer, nested if else in c++ program, syntax of nested if in c++, nested if in c++, nested if in c++ ppt, c++ video tutorial, classes, programming language (software genre), keyboard, nested if in c++ meaning, nested if in c++, c++ interview questions, multiple if in c++, instillation, nested if in c++ programming, nested if else in c++ programming examples, if else nested in c in a for loop, example for nested if in c, nested if else statements in c++,22,30], nested if in c++ pdf, software (industry), learn c++ language, bloodsheddev, learn c++ programming, helloworld, c++ programming tutorials, c++ programming tutorial for beginners, c++ programming tutorial complete, c++ programming tutorila hindi, c++ tutorials complete, c++ tutorials from basic to advance, free c++ programming tutorial hindi, c++ programming tutorial, jackktutorials, onestopprogramming, all c++ programming tutorial hindi, c++ tutorials hindi, address of, how to make a snake game, decrement, אוניברסיטת תל אביב,
No comments:
Post a Comment