Multiplication using c++

Go down

Multiplication using c++

Post by Donutz on 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;
}
avatar
Donutz
Donutz-Zone Admin
Donutz-Zone Admin

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

http://dzone.forumotion.net

Back to top Go down

Re: Multiplication using c++

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

thanks po dito bounce

_________________________________________________
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]
"GREAT POWER COMES GREAT RESPONSIBILITY"
avatar
khaye1989
Donutz-Zone Admin
Donutz-Zone Admin

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

Back to top Go down

Re: Multiplication using c++

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

thanks po dito bounce

_________________________________________________
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]
"GREAT POWER COMES GREAT RESPONSIBILITY"
avatar
khaye1989
Donutz-Zone Admin
Donutz-Zone Admin

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

Back to top Go down

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