Mathematical Problem in C++ Programming.


 ๐Ÿ”Ž๐Ÿ”ŽWe can understand how to solve complex mathematical problem in C++ firstly we take some examples for know this concept...


Example 1: Write a Program to find Area of "Squere" ?

Answer:      #include<iostram.h>
                    #include<conio.h>
                    void main()
                   {
                    clrscr();
                   Float a,area;
                   cout<<"Enter side of  squere ";
                   cin>>a;
                   area= a*a;
                   cout<<"Area of squere is "<<area;
                   getch();
                   }

In these program we know that how to find area of squere
 firstly include some header files which are use for these program
 and then put a void main then write clrscr which is used for
 clear the screen then take two variable in Float datatype because
 the area of squere are chance that its value is decimal then in
 "a" and "area" in variable "a" store the side of squere and in
 "area " variable we calculate area of squere then input the side
 from user and store this value in "a" variable then we know that
 area of squere is a*a then we calculate area of squere and then
 display it.





Example 2: Write a program to find area of rectraingle ?

Answer:      #include<iostram.h>
                    #include<conio.h>
                    void main()
                   {
                    clrscr();
                   Float l,b,area;
                   cout<<"Enter length and braith of rectraingle ";
                   cin>>l>>b;
                   area= l*b;
                   cout<<"Area of Rectraingle is "<<area;
                   getch();
                   }



Example 3: Write a program to find (a+b)whole squere ?

Answer:      #include<iostram.h>
                    #include<conio.h>
                    void main()
                   {
                    clrscr();
                   Float a,b,c;
                   cout<<"Enter value for a and b";
                   cin>>a>>b;
                   area= a*a+2*a*b+b*b;
                   cout<<"Area is "<<area;
                   getch();
                   }



More questions like this :-


Problem 1:  Write a Program to find Area of  Traingle ?

Problem 2:  Write a Program to find Volume of  Cylinder ?

Problem 3:  Write a Program to find (a-b)whole squere?

Problem 4:  Write a Program to find Area of  (a+b+c) whole squere ?

Problem 5:  Write a Program to find Area of  Rhombus?

Problem 6 :  Write a Program to find  (a+b+c) whole cube?

Problem 7:  Write a Program to find Area of  Circle ?

Problem 8:  Write a Program to find Area of  Trapezoid ?

Problem 9:  Write a Program to find Area of  Sphere?

Problem 10:  Write a Program to find Area of  Elipse ?



IF you want to know how to display any string or anything in c++ then   CLICK HERE





if you face any any problem or any issue about our website then fill the contact us page and write your issues in it ...

๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡



                      KEEP SUPPORTING ๐Ÿ‘Œ !!  KEEP LEARNING ๐Ÿ“š !!