C Programming |
You are subscribed to email updates from C Programming To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
C Programming |
You are subscribed to email updates from C Programming To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
C Programming |
Posted: 10 Dec 2013 06:28 AM PST Q. Write a C program to print the following number pattern rectangle as: 1 2 3 4 5 4 5 2 3 4 5 3 4 5 3 4 5 2 3 4 5 4 5 1 2 3 4 5 Ans. /*c program for number pattern rectangle design*/ #include<stdio.h> int main() { int n=4,num=5,p=4,r,c,z; for(r=1; r<=n; r++,p--) { for(c=r; c<=num; c++) printf(" %d",c); for(c=1,z=p; c<=r+1; c++,z++) printf(" %d",z); printf("\n"); } getch(); return 0; } /*********************************************************** The output of above program would be: ************************************************************/
|
You are subscribed to email updates from C Programming To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
IPL Twenty20 Cricket |
Only T20: Pakistan vs Afghanistan in UAE 2013 Posted: 07 Dec 2013 09:20 AM PST | ||||||||||||
West Indies tour of New Zealand 2013-14 Posted: 07 Dec 2013 09:05 AM PST
|
You are subscribed to email updates from IPL Twenty20 Cricket To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
Post a Comment