Search
 
SCRIPT & CODE EXAMPLE
 

C

pygramid program in c

				/* pattern
				 *
				***
			   *****
			  *******
				*/

# include <stdio.h>
int main()
{
	int row,space,stars;
	for(row = 1;row<=4;row++)
	{
		// it is to indicate and calulate each space in the pyramid
		for(space=1;space<=7-row;space++)
			printf(" ");
		for(stars=1;stars<=((2*row)-1);stars++)
			printf("*");
		printf("
");
	}
}
Comment

PREVIOUS NEXT
Code Example
C :: Complete the function in the editor. It has one parameter: an array, . It must iterate through the array performing one of the following actions on each element: 
C :: fseek function in c 
C :: eliminare file in c 
C :: 2d array in c 
C :: unpack and repack deb package 
C :: implement crc using c language 
C :: how to insert elements in and array and print it in c 
C :: c check if character is upper case 
C :: division en java 
C :: check if string contains a character in c 
C :: c read binary file 
C :: virtualbox how to move vmdk to another folder 
C :: %g and %e in c 
C :: writing structures in c 
C :: les fichiers en c 
C :: bp result system 
C :: pipe system call 
C :: sOY wapo ya lo c 
C :: String to Integer (atoi) 
C :: User input in struct 
C :: gdebi install with yes option 
C :: nested if example in c 
C :: sum of fibonacci series in c 
C :: fraction sum c 
C :: denomination counter 
C :: getopt optstr 
C :: send array to child process c 
C :: cannot reach esp8266 via udp while he is running with a static ip 
C :: is 0 true or false 
C :: sort vectors c 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =