Write a program to display 2nd, 4th and 6th multiple of the input integer number.
#include #include int main() { clrscr(); int n; cout<<"Enter an integer number :"; cin>>n; int m2=n*2; int m4=n*4; int m6=n*6; cout<<"Second Multiple ="< #include using namespace std; int main() { int n; cout<<"Enter an integer number :"; cin>>n; int m2=n*2; int m4=n*4; int m6=n*6; cout<<"Second Multiple ="< CPP#1992View full post Print table of an integer number #include using namespace std; int main() { int n; cout<<"Print a table of : "; cin>>n; for(int i=1;i<=10;i++) { cout< #include using namespace std; int main() { int n; cout<<"Enter an integer number :"; cin>>n; int m2=n*2; int m4=n*4; int m6=n*6; cout<<"Second Multiple ="< Test it !Test CPP Code !XThe code has been copied automatically for you in the clipboard. After that open any of the service and press cntrl-v to paste in the given code area. Needs a bit of tweaking as per the link. repl.it CPP cpp.sh CPP Ideone CPP Browxy CPP Related (?)About RelatedXRelated codes are those codes where similar programming concepts are in use. They are different from alternate codes in the sense that they may not have same purpose and results. : Show Run Output Enter an integer number :3 Second Multiple =6 Fourth Multiple =12 Sixth Multiple =18 int n; cout<<“Enter an integer number :”; cin>>n; A number from user is collected. int m2=n*2; int m4=n*4; int m6=n*6; Multiple are nothing but simple multiplication with the given multiple number. cout<<“Second Multiple =”<<m2<<endl; cout<<“Fourth Multiple =”<<m4<<endl; cout<<“Sixth Multiple =”<<m6<<endl; All the multiples are printed with simple cout instructions. Notes Multiples are commonly used to print the table of numbers. sunmitra| Created: 26-Jan-2018 | Updated: 29-Nov-2018| Post Views: 598
#include using namespace std; int main() { int n; cout<<"Print a table of : "; cin>>n; for(int i=1;i<=10;i++) { cout<
Enter an integer number :3 Second Multiple =6 Fourth Multiple =12 Sixth Multiple =18
int n; cout<<“Enter an integer number :”; cin>>n; A number from user is collected.
int m2=n*2; int m4=n*4; int m6=n*6; Multiple are nothing but simple multiplication with the given multiple number.
cout<<“Second Multiple =”<<m2<<endl; cout<<“Fourth Multiple =”<<m4<<endl; cout<<“Sixth Multiple =”<<m6<<endl; All the multiples are printed with simple cout instructions.
sunmitra| Created: 26-Jan-2018 | Updated: 29-Nov-2018|
Building Expressions and Formulas