█ Need Help #2

Hello,
i'm a serious newbie in c++ & i have been given to Print table of 5 in proper format ( 5 * 1 = 5). I'm not asking for the solution i wanted to just ask ya'll for a little help. so far till now i'm stuck here
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream.h>
void main()
{
int i;
cin>>i;
	do
	{
	cout<<"enter the starting no.\n";
	while(i>0;i<=10;i++)
	cout>>(5*i)
	}
}

Regards,
ATMOSF3AR
closed account (1vRz3TCk)
What compiler are you using (before I rip your code to shreds ... in a constructive manor)?

Edit:
That probably comes across a bit harsh...

First don't use void main() it should be int main()

basically you want to use a for loop and you don't need user input (cin).
Last edited on
Topic archived. No new replies allowed.