no I didnt write any code yet.
but i just want to know how the loop going too look like.
but let me try
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <iostream>
usingnamespace std;
void main ()
{
int number
cout<<"please enter a number \n";
cin>>number;
for (i=number;;i=??? "here is my problem")
{
cout<<i <<endl;
}
system ("pause");
}
oh so i cant leave the condition empty,
ok if i dont want to make a condition for the entered number, for example the user can
write any number he want, what should i write??
and can you please solve me this problem cause im having an exam really soon =(
/* Usandfriend's Program for Times Tables. */
#include <stdio.h>
main()
{
int i,j,product;
printf ("This program prints a times table to 10.\n");
printf ("Press enter to continue.\n");
getchar();
for(i=1;i<=10;i++)
{
for (j=1;j<=10;j++)
{
product=i*j;
printf ("%d\t",product);
}
printf ("\n");
}
getchar();
}