#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;j++){
cout<<x++%10<<" ";
}
puts("");
}
}
return 0;
}
Showing posts with label Addition Table. Show all posts
Showing posts with label Addition Table. Show all posts
Tuesday, July 16, 2013
How to find Addition Table using C++
Subscribe to:
Comments (Atom)