the typical question which ask user to display THIS
*
**
***
****
*****
******
*******
********
*********
**********
using a single cout<<"*" & cout " " with the help of for loops ONLY. :)
ive come to this this prgram but can anyone tell me where i am going wrong and how to correct this error pls!!! :o
#include <iostream.h>
#include <conio.h>
int main()
{
int a,b=1,c=10;
for ( a=10 ; a >=0 ; a--)
{
for ( ; b>0 ; b--)
{
cout<<"*";
}
for ( ; c>0 ; c--)
{
cout<<" ";
}
}
getch();
return 0;
}
whats wrong here!!!!
THE PROBLEM CONTINUES ON.....but for now i need help till here :cry: