Showing posts with label 4444 3333 2222 1111 pyramid. Show all posts
Showing posts with label 4444 3333 2222 1111 pyramid. Show all posts

9.02.2011

8.Design numbers rectangle structure

Q. Write a program to generate a following numbers structure:
   (Where user entered number through keyboard, for example if num=5)
                            55555
                            44444
                            33333
                            22222
                            11111

Ans.

/* c program for number structure*/
#include<stdio.h>
#include<conio.h>
int main()
{