#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int n;
while(cin>>n){
for(int i=0;i<n;i++){
int x = i;
for(int j=0;j<n-1;j++){
if(j == 0) printf("0 ");
cout<<(x)%n<<" ";
x+=i;
}
puts("");
}
}
return 0;
}
Showing posts with label Multiplication Table. Show all posts
Showing posts with label Multiplication Table. Show all posts
Tuesday, July 16, 2013
How to find Multiplication table using C++
Subscribe to:
Comments (Atom)