C PROGRAMME TO DISPLAY MULTIPLICATION TABLE

Download excellent quality study note and ebooks of amie section a on Computing and Informatics (AD 303) in pdf,ppt,doc format
RAVIGARU
Posts: 313
Joined: Sat May 05, 2012 9:47 pm
Contact:

C PROGRAMME TO DISPLAY MULTIPLICATION TABLE

C PROGRAMME TO DISPLAY MULTIPLICATION TABLE OF GIVEN NUMBER.

/*MULTIPLICATION TABLE PROGRAMME. INPUT A NUMBER FOR MULTIPLICATION TABLE UPTO 20*/

#include <stdio.h>

void main ()
{
int a,b;
b=1;
printf("Enter a number for multiplication table for that number: ");
scanf("%d", &a);
while (b<21)
{
printf("%4d X %4d = %4d\n", a, b, a*b);
b++;
}
system ("pause");
return 0;
}
You do not have the required permissions to view the files attached to this post.

C PROGRAMME TO DISPLAY MULTIPLICATION TABLE

RAVIGARU
Posts: 313
Joined: Sat May 05, 2012 9:47 pm
Contact:

Multiplicatin Table cross 7 X 7; U Can change it

Multiplicatin Table cross 7 X 7; U Can change it by replacing 8 with the number u want!
------------------------------------------------------

#include <iostream>
using namespace std;

int main()
{
int table[8][8];

for(int i = 0; i < 8; i++)
for(int j = 0; j < 8; j++)
table[j] = i * j;
cout<<"\t\t";

for(int i = 0; i < 8; i++)
cout<<i<<"\t";
cout<<"\n\t\t---------------------------------------------------------";
cout<<endl;
for(int i=0; i<8; i++)
{
cout<<i<<"|\t\t";
for(int j=0; j<8; j++)
cout<< table[j] << "\t";
cout<<endl;
}

system("pause");
return 0;
}
You do not have the required permissions to view the files attached to this post.