multiplication table in C++,C++ basics,C++ Programming
Hi, There My Name is Bilal Ahmad and now I will tell how you can a division of any number in C++. In this program, I will make a simple basic division of any number you want. you can also get the division of any number from the user.
Let's Start the Program in C++:
program in C++:
#include<iostream>
using namespace std;
int main()
{
int input1=0,input2=0,division=0;
cout<<"please enter the number to get the division value";
cin>>input1;
cout<<"please enter the 2nd number to get the division value";
cin>>input2;
division=input1/input2;
cout<<"the values after division ="<<division<<endl;
return 0;
}
Explain the program in C++ basics:
Let's Start the Program in C++:
program in C++:
#include<iostream>
using namespace std;
int main()
{
int input1=0,input2=0,division=0;
cout<<"please enter the number to get the division value";
cin>>input1;
cout<<"please enter the 2nd number to get the division value";
cin>>input2;
division=input1/input2;
cout<<"the values after division ="<<division<<endl;
return 0;
}
Explain the program in C++ basics:
- First of all, we use the directory I C++ that gives the output and take the input values/
- Then we use the standard form of program.
- Then we take the variables to store the values that give the user.
- Then the program takes the values and puts the values accordingly.
- Then the division variable performs the calculation and then stores the value.
- Then the program simply gives the value.
Example of this program.
- So let's suppose the user takes the values 10 and 5.
- The program will store the values accordingly.
- The program then performs the calculation.
- Then simply out he value 2 in this case.
So hope to see you next time with the best regards
And visit my youtube channel here.

Leave a Comment