Please register or login. There are 3 registered and 1032 anonymous users currently online. Current bandwidth usage: 91.71 kbit/s August 29 - 02:40am EDT 
Hardware Analysis
      
Forums Product Prices
  Contents 
 
 

  Latest Topics 
 

More >>
 

    
 
 

  You Are Here: 
 
/ Forums / Programming /
 

  Floyd's triangle 
 
 Author 
 Date Written 
 Tools 
Captain Jack Sparrow Apr 09, 2006, 02:21am EDT Reply - Quote - Report Abuse
Send Message - Add to Buddy List Replies: 4 - Views: 1002
How do i build a floyd's triangle in C?

Floyd's triangle is this:

1
23
456
78910
1112131415
.......

Please give code or logic



*Raid on to the Black Pearl my friends*
Savvy!
Want to enjoy less advertisements and more features? Click here to become a Hardware Analysis registered user.
Shadow_Ops_Airman1 Apr 09, 2006, 03:00am EDT Reply - Quote - Report Abuse
Send Message - Add to Buddy List  
>> Re: Floyd's triangle
what you want it in Binary or hexadecimal?

AMD Athlon XP-M 2500+ (133x14= 1867MHz) (209x11= 2299MHz)
DFI LP NF2 Ultra-B (Hellfire 3EG Rev2)
Antec SX800, Neo HE 500, 4 Antec 8CM Fans
Thermalright SI-97 1 Antec Tricool 12CM Fan
CL SB XFi Xtreme Music
2x Barracuda HDs (250/400)
2x Samsung Write
Captain Jack Sparrow Apr 09, 2006, 03:27am EDT Reply - Quote - Report Abuse
Send Message - Add to Buddy List  
>> Re: Floyd's triangle
Both actually.

Whats the difference in the codes though?

*Raid on to the Black Pearl my friends*
Savvy!
Shadow_Ops_Airman1 Apr 09, 2006, 03:46am EDT Reply - Quote - Report Abuse
Send Message - Add to Buddy List

Edited: Apr 09, 2006, 03:52am EDT

 
>> Re: Floyd's triangle
Hexadecimal requires only 1/4 of the characters of binary to create, Hexacecimal uses 16 characters, 0-9 and A-F PS are those Individual Characters or whole numbers

AMD Athlon XP-M 2500+ (133x14= 1867MHz) (209x11= 2299MHz)
DFI LP NF2 Ultra-B (Hellfire 3EG Rev2)
Antec SX800, Neo HE 500, 4 Antec 8CM Fans
Thermalright SI-97 1 Antec Tricool 12CM Fan
CL SB XFi Xtreme Music
2x Barracuda HDs (250/400)
2x Samsung Write
tara thakpa Sep 03, 2007, 09:30pm EDT Reply - Quote - Report Abuse
Send Message - Add to Buddy List  
>> Re: Floyd's triangle
code 4 floyd triangle:

main void()
{
int no;line_no=1;
printf("enter a number");
scanf("\n");
while(line_no<=n)
{
cnt=1
while(cnt<=line_no)
{
printf("%d \t",no++);
cnt++;
}
printf("\n")
line_no++
}
}


Write a Reply >>


 

    
 
 

  Topic Tools 
 
RSS UpdatesRSS Updates
 

  Related Articles 
 
 

  Newsletter 
 
A weekly newsletter featuring an editorial and a roundup of the latest articles, news and other interesting topics.

Please enter your email address below and click Subscribe.