*****Last Ten Active Topic***


Amie TV question paper
1FATP8UH3K5159596 Ford Mustang 2019 Blue 2.3L
1FATP8UH3K5159596 Ford Mustang 2019 Blue 2.3L
previous year Question Paper OF COMPUTER NETWORKS WINTER 10
e-book of material science and engineering by kakani
Project Report
Free Download AMIE Section A study notes on AD 304
AMIE Section A Video tutorial on FDM AD-301
EXAM FOR SECTION A
C AND C++ PROGRAMMING TUTORIAL GUIDE

 

 

 

 

 

Registration Running on Online Classes for AMIE Summer 2018 Click Here to Register

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

C PROGRAMME TO DISPLAY MULTIPLICATION TABLE

Postby RAVIGARU » Tue May 15, 2012 7:39 am

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.Please Register yourself to Download for register click on REGISTER
RAVIGARU
Adviser
Adviser
 
Posts: 313
Joined: Sat May 05, 2012 9:47 pm

Multiplicatin Table cross 7 X 7; U Can change it

Postby RAVIGARU » Tue May 15, 2012 7:54 am

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

#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[i][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[i][j] << "\t";
cout<<endl;
}

system("pause");
return 0;
}
You do not have the required permissions to view the files attached to this post.Please Register yourself to Download for register click on REGISTER
RAVIGARU
Adviser
Adviser
 
Posts: 313
Joined: Sat May 05, 2012 9:47 pm


Return to Computing and Informatics (AD 303)

Who is online

Registered users: No registered users