21:22 Multiplication table standard | |
#include <iostream> using namespace std; int mul(int x, int y){ return (x*y); } int main() { int i, j; int a[10][10]; for (i=0;i<10;i++){ for (j=0;j<10;j++) a[i][j]=mul(i,j); } for (i=0;i<10;i++){ cout<<endl; for (j=0;j<10;j++) cout<<i<<" * "<<j<<" = "<<a[i][j]<<endl; } return 0; } | |
|
Total comments: 0 | |