C++ School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a C++ Expert!

Join 306,822 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,768 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

@B@

23 May, 2009 - 08:41 PM
Post #1

New D.I.C Head
*

Joined: 23 May, 2009
Posts: 2

CODE
#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.gif

User is offlineProfile CardPM
+Quote Post


apw5020

RE: Multiplication Table

23 May, 2009 - 08:57 PM
Post #2

D.I.C Addict
****

Joined: 26 Mar, 2009
Posts: 577



Thanked: 58 times
My Contributions
What is your question?
User is offlineProfile CardPM
+Quote Post

janotte

RE: Multiplication Table

23 May, 2009 - 11:01 PM
Post #3

code > sword
Group Icon

Joined: 28 Sep, 2006
Posts: 2,171



Thanked: 153 times
Expert In: C/C++

My Contributions



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.gif
( d ) Use the "Preview Post" button to check it's all good.
( e ) Use the "Submit Modified Post" button to finish the editing.



User is offlineProfile CardPM
+Quote Post

no2pencil

RE: Multiplication Table

23 May, 2009 - 11:03 PM
Post #4

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,488



Thanked: 303 times
Dream Kudos: 2875
Expert In: Goofing Off

My Contributions
Where is c getting it's value? I see you declare it, but you output it without giving it a value
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic

Time is now: 11/20/09 10:30PM

Live C++ Help!

Be Social

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

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month