any one Know How to Print this Pattern using Loops in C? ********* ******* ***** *** ** *
Sudantha_s Member Feb 2, 2007 3,516 7 0 Assassin Brotherhood Dec 12, 2008 #1 any one Know How to Print this Pattern using Loops in C? ********* ******* ***** *** ** *
x-pert Member Jun 13, 2006 20,952 77 0 Dec 12, 2008 #2 Please don't expect direct answers for your homework mate Let us know what did you do? How did you try to solve it? Hint: You might need 2 for loops (nested) 1st for loop will print the spaces. And the nested will print the rows.
Please don't expect direct answers for your homework mate Let us know what did you do? How did you try to solve it? Hint: You might need 2 for loops (nested) 1st for loop will print the spaces. And the nested will print the rows.
koondeGoda Member Nov 28, 2007 4,892 35 0 ₪ Hyper_Cube ₪ Dec 12, 2008 #3 i hvnt done much C ..but try dis Code: for(int i=0 , j= 9; i < 6 ; i++){ for(int k=0 ; k < j ; k++ ) printf("*"); // print a new line j=j-2; }
i hvnt done much C ..but try dis Code: for(int i=0 , j= 9; i < 6 ; i++){ for(int k=0 ; k < j ; k++ ) printf("*"); // print a new line j=j-2; }
Sudantha_s Member Feb 2, 2007 3,516 7 0 Assassin Brotherhood Dec 12, 2008 #4 Code: #include<stdio.h> main() { int i; int j; for(i=0;i<8;i++) { printf("\n"); for(j=0;j<i;j++) printf("*"); } } Thanks X-pert and Koondegoda for support ...I found da way
Code: #include<stdio.h> main() { int i; int j; for(i=0;i<8;i++) { printf("\n"); for(j=0;j<i;j++) printf("*"); } } Thanks X-pert and Koondegoda for support ...I found da way
Jack_Sparrow Well-known member Jun 16, 2008 42,522 1 16,928 113 Black Pearl Dec 12, 2008 #5 Oya thiyenne udaw api oka C# walin kala
samudi24 Member Jan 9, 2008 47 0 0 in home Dec 12, 2008 #6 ********* ******* ***** *** methanin passe "*" 1i neda enna ona ** * ehema neththam meka loop walin print karanna beeeeeeee....
********* ******* ***** *** methanin passe "*" 1i neda enna ona ** * ehema neththam meka loop walin print karanna beeeeeeee....