1 Replies - 3054 Views - Last Post: 16 February 2011 - 07:48 PM Rate Topic: -----

#1 ColeenAra  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 16-February 11

For loop (5x5 multiplication table)

Posted 16 February 2011 - 07:46 PM

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

int x, y;

main()
{
      for (x=1; x<=5; x++)
      {
          for (y=1; y<=5; y++)
          cout<<  x * y <<"\t";
          }
          getch();
}


Hi, i'm having some difficulty on my program. What could be wrong? :(

Is This A Good Question/Topic? 0
  • +

Replies To: For loop (5x5 multiplication table)

#2 ishkabible  Icon User is offline

  • spelling expret
  • member icon




Reputation: 1622
  • View blog
  • Posts: 5,709
  • Joined: 03-August 09

Re: For loop (5x5 multiplication table)

Posted 16 February 2011 - 07:48 PM

#include<conio.h>

and
getch();

are not stranded, take out conio.h and replace getch() with cin.get() becuase you are using C++.

you need to tell us what is happening as apposed to what you expect to happen. just saying something is wrong tells us nothing.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1