Page 2 of 2 First 12
  • Jump to page:
    #16
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Location
    India
    Posts
    95
    Rep Power
    4
    Originally Posted by Kuiva
    Code:
    #include <stdio.h>
    
    main()
    {
    	int line, space, variable;
    	
      	for(line=1; line<=9; line+=2)
    	{
    		for(space=7; space>=line; space-=2)
    		{
    			printf(" ");
    		}
    		for(variable=1; variable<=line; variable++)
    		{
    			printf("*");
    		}
    		printf("\n");
    	}
    }
    i think he dont want such output he want with 1*,2*,3*... in line.
  2. #17
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    74
    Rep Power
    2
    yes, i understand what he wanted but he cant do anything about it, C does not have that kind of formatting
Page 2 of 2 First 12
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo