main.cpp
#include<iostream.h>
#include "prow.h"
void main()
{
fun1();
cout<<'\n';
cout<<'\n';
fun2();
cout<<'\n';
cout<<'\n';
fun3();
}
por1.cpp
#include<iostream.h>
#include "prow.h"
void fun1()
{
int i,j;
cout<<'*';
for(i=1;i<10;i++)
cout<<" "<<i;
cout<<"\n";
for(i=1;i<10;i++){
cout<<i;
for(j=1;j<10;j++)
cout<<" "<<i*j;
cout<<"\n";
}
}
por2.cpp
#include<iostream.h>
#include "prow.h"
void fun2()
{
int i,j;
cout<<'*';
for(i=1;i<10;i++)
cout<<" "<<i;
cout<<"\n";
for(i=1;i<10;i++){
cout<<i;
for(j=1;j<=i;j++)
cout<<" "<<i*j;
cout<<"\n";
}
}
por3.cpp
#include<iostream.h>
#include "prow.h"
void fun3()
{
int i,j;
cout<<'*';
for(i=1;i<10;i++)
cout<<" "<<i;
cout<<"\n";
for(i=1;i<10;i++){
cout<<i;
for(j=1;j<10;j++)
if(j>=i)
cout<<" "<<i*j;
else
cout<<" ";
cout<<"\n";
}
}
prow.h
#ifndef CIRCLE_H
#define CIRCLE_H
extern void fun1();
extern void fun2();
extern void fun3();
#endif