Posts

Showing posts with the label it

Pascal Triangle in C programing

Image
Good day programers,          This a simple C program that ask the user to input number of lines he/she want's and generate a pascal triangle starts with one and when the count is greater than two it multiply it self by two, after it reach the half of the triangle it divide it self by two and stop in one(1), this c program is an example of an nested loop, I hope it helps you!   Code: #include  //dont copy pls.. takes me 2 hours to figure this out.. main() {     int n, a, k, number = 1, space = n;     printf("Enter number of lines: ");     scanf("%d",&n);     printf("\n\n");     space = n;     for ( a = 1 ; a <= n ; a++ )     {         for ( k = space ; k > 1 ; k-- )             printf("   "); ...

I'm caught between goodbye and I love you

I have something to tell you And I know it won't be easy I've been thinking these past few days It might be time to leave You're like a stranger Then you're a lover Never the same Always hard to believe (*) I'm caught between goodbye and I love you Never knowing quite where I stand I'm caught between goodbye and I love you Falling both ways nowhere to land So constantly stranded I can't understant it (understand) This double life you've handed me Is like the devil and the deep blue sea If we go on much longer If my doubts grow any stronger Then I may have to let you go If only to survive Give me a reason Why should I stary here? (stay) I've tried so hard Just to keep love alive Repeat (*)