Multiplication using c++
2 posters
Page 1 of 1
Multiplication using c++
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;
}
Re: Multiplication using c++
thanks po dito
khaye1989- Donutz-Zone Admin
- Posts : 262
Points : 349
Repute : 21
Join date : 2011-11-26
Age : 35
Location : Bikini Bottom
Re: Multiplication using c++
thanks po dito
khaye1989- Donutz-Zone Admin
- Posts : 262
Points : 349
Repute : 21
Join date : 2011-11-26
Age : 35
Location : Bikini Bottom
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|