School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,137 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 3,910 people online right now. Registration is fast and FREE... Join Now!



Multiplication table

Multiplication table C++ program; giving table of any number between 1 to 10 Rate Topic: -----

#1 @B@  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 2
  • Joined: 23-May 09


Dream Kudos: 0

Post icon  Posted 23 May 2009 - 08:41 PM

#include<iostream>
#include<conio.h>
int main()
{
	int a,b,c;
	cout<<"enter any number between 1 to 10";
	cin>>a;
  
	 for(b=1;b<=10;b++)
  
   cout<<c<<"*"<<b<<"="<<a*b<<"\n";
	
	getch ();
	return 0;
	
}


** Edit ** :code:
Was This Post Helpful? 0
  • +
  • -


#2 apw5020  Icon User is offline

  • D.I.C Addict
  • PipPipPipPip
  • Group: Members
  • Posts: 585
  • Joined: 26-March 09


Dream Kudos: 0

Posted 23 May 2009 - 08:57 PM

What is your question?
Was This Post Helpful? 0
  • +
  • -

#3 janotte  Icon User is offline

  • code > sword
  • Icon
  • Group: Expert w/DIC++
  • Posts: 2,675
  • Joined: 28-September 06


Dream Kudos: 0

Expert In: C/C++

Posted 23 May 2009 - 11:01 PM

Welcome to DIC!

Please edit your posting (see the "EDIT" button in lower right).
( a ) Delete all your code.
( b ) Get a fresh copy of the code with formatting in place from your editor / IDE.
( c ) Paste the formatted code between code tags like this :code:
( d ) Use the "Preview Post" button to check it's all good.
( e ) Use the "Submit Modified Post" button to finish the editing.
Was This Post Helpful? 0
  • +
  • -

#4 no2pencil  Icon User is online

  • PHoToN PoWeR PaCK : not included
  • Icon
  • View blog
  • Group: Moderators
  • Posts: 15,043
  • Joined: 10-May 07


Dream Kudos: 2875

Expert In: Goofing Off

Posted 23 May 2009 - 11:03 PM

Where is c getting it's value? I see you declare it, but you output it without giving it a value
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month