C++ Program to Make Math Tables

Program Code:

#include<iostream>
#include<conio.h>
using namespace std;

int func(int a)
{
if (a!=0)
{

if (a%9==0)
cout<<a<<endl;

func(--a);
}
}

int main()
{
 func(100);
 getch();

}

No comments:

Post a Comment

Please disable your ad blocker to support this website.

Our website relies on revenue from ads to keep providing free content.