Facebook FanPage
Sponsors
Donutz Zone logo
Image and video hosting by TinyPic

Multiplication using c++

View previous topic View next topic Go down

Multiplication using c++

Post by Donutz on Sat Nov 19, 2011 9: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-Zone Admin
Donutz-Zone Admin

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

http://dzone.pixforum.net

Back to top Go down

Re: Multiplication using c++

Post by khaye1989 on Sat Nov 26, 2011 9: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.][You must be registered and logged in to see this link.] alt="" />
"GREAT POWER COMES GREAT RESPONSIBILITY"

khaye1989
Donutz-Zone Admin
Donutz-Zone Admin

Posts: 261
Points: 348
Repute: 21
Join date: 2011-11-26
Age: 23
Location: Bikini Bottom

Back to top Go down

Re: Multiplication using c++

Post by khaye1989 on Sat Nov 26, 2011 9: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.][You must be registered and logged in to see this link.] alt="" />
"GREAT POWER COMES GREAT RESPONSIBILITY"

khaye1989
Donutz-Zone Admin
Donutz-Zone Admin

Posts: 261
Points: 348
Repute: 21
Join date: 2011-11-26
Age: 23
Location: Bikini Bottom

Back to top Go down

View previous topic View next topic Back to top


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