Percentage in C++ Programming...



IF you want to know that how to find prcentage in C++ programming firstly we understand some example about it .


Example 1: Write a program to accept Bill from user and calculate the tax and is 10% of Bill ??

Answer :    #include<iostream.h>
                    #include<conio.h>
                    void main()
                   {
                    clrscr();
                   Float b,tax;
                   cout<<"Enter Bill amount ";
                   cin>>b;
                   tax= (b*10)/100;
                   cout<<"Your income tax is "<<tax;
                   getch();
                   }




Example 2: Write a program to accept Bill from user and calculate the tax and is 32% of Bill ??

Answer :    #include<iostream.h>
                    #include<conio.h>
                    void main()
                   {
                    clrscr();
                   Float b,tax;
                   cout<<"Enter Bill amount ";
                   cin>>b;
                   tax= (b*32)/100;
                   cout<<"Your income tax is "<<tax;
                   getch();
                   }




Example 3: Write a program to accept Bill from user and calculate the tax and is 27% of Bill ??

Answer :    #include<iostream.h>
                    #include<conio.h>
                    void main()
                   {
                    clrscr();
                   Float b,tax;
                   cout<<"Enter Bill amount ";
                   cin>>b;
                   tax= (b*27)/100;
                   cout<<"Your income tax is "<<tax;
                   getch();
                   }



More questions like this :-




EXAMPLE 1: Write a program to accept salary from user and calculate income tax that is 25% of salary ??

EXAMPLE 2: Write a program to accept selling amount from user and calculate commision  that is 25% of     selling amount??

EXAMPLE 3: Write a program to accept Bill from user and calculate Discount that is 30% of bill ??

EXAMPLE 4: Write a program to accept salary from user and calculate D.A that is 7% of salary ??

EXAMPLE 5: Write a program to accept salary from user and calculate P.F that is 40% of salary ??

EXAMPLE 6: Write a program to accept Price and quantity from user and calculate G.S.T that is 10% of 
 Bill??   

EXAMPLE 7: Write a program to accept Price and quantity from user and calculate  Bill and G.S.T that is      50% of  Bill??










       πŸ‘‰  IF you want to know how to display any string or anything in C++ then   CLICK HERE
 
       πŸ‘‰ IF you want to know How to solve Complex type of mathematical Problem in C++ 

               Programming  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 πŸ“š !!



                                                                    πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡πŸ˜‡