pattern4


SUBMITTED BY: Nrupeshsinh

DATE: June 25, 2016, 12:22 p.m.

FORMAT: Text only

SIZE: 221 Bytes

HITS: 623

  1. # include<iostream.h>
  2. # include<conio.h>
  3. void main()
  4. {
  5. int i,j,n;
  6. clrscr();
  7. cout<<"Enter value :";
  8. cin>>n;
  9. for(i=n; i>0; i--)
  10. {
  11. for(j=1; j<=i; j++)
  12. {
  13. cout<<j;
  14. }
  15. cout<<endl;
  16. }
  17. getch();
  18. }

comments powered by Disqus