Robert Ryan wrote:
> there is just error which I can not find.....
> 
>   #include<stdio.h>
>   int main()
>   {
>   int tr=10,r=0,c=0,s=0, o=1;
>   //clrscr();
>   for(c=1; c<=tr; r++)
>   {
>   for(c=1;c<=tr- r;c++)
>   {
>   printf(" ");
>   }
>   for(c=1;c<=o; s++)
>   {
>   printf("c");
>   printf("\n') ;
>   o=o+2;
>   }
>   return 0;
>   }
>    
>    
>   triangle.cpp: In function `int main()':
>   triangle.cpp:15: parse error at end of input

As the error message states, the error is on line 15.

Learn to indent your code.  Gratuitous use of whitespace will make your 
code more readable and syntax errors easier to fix.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to