Donutz Zone
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Multiplication using c++

2 posters

Go down

Multiplication using c++ Empty Multiplication using c++

Post by Donutz Sat Nov 19, 2011 4:20 am

Multiplication using c++

#include <iostream>
using namespace std;

int main ()

{

int x,y,z=1,m;
char e;
do{ z=1;
cout<<"Enter starting number : ";
cin>>y;
for (x=1;x<=10;x++){
for (m=y;m<=y+2;m++){
cout<<m<<"*"<<z<<"="<<m*x<<"\t";
}
cout<<"\n";
z++;

}
cout<<"\n";
cout<<"Another entry? [y/n] : ";
cin>>e;
system ("cls");
}while (e=='y' || e=='Y');
system ("PAUSE");
return 0;
}
Donutz
Donutz
Donutz-Zone Admin
Donutz-Zone Admin

Posts : 555
Points : 1456
Repute : 0
Join date : 2011-10-29
Age : 33
Location : C:/Program files/Donutz/Zone

https://dzone.forumotion.net

Back to top Go down

Multiplication using c++ Empty Re: Multiplication using c++

Post by khaye1989 Sat Nov 26, 2011 4:45 pm

thanks po dito bounce
khaye1989
khaye1989
Donutz-Zone Admin
Donutz-Zone Admin

Posts : 262
Points : 349
Repute : 21
Join date : 2011-11-26
Age : 35
Location : Bikini Bottom

Back to top Go down

Multiplication using c++ Empty Re: Multiplication using c++

Post by khaye1989 Sat Nov 26, 2011 4:45 pm

thanks po dito bounce
khaye1989
khaye1989
Donutz-Zone Admin
Donutz-Zone Admin

Posts : 262
Points : 349
Repute : 21
Join date : 2011-11-26
Age : 35
Location : Bikini Bottom

Back to top Go down

Multiplication using c++ Empty Re: Multiplication using c++

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum