Sunday, 23 October 2016

Series....1

#include<conio.h>
#include<iostream.h>
void main()
{
clrscr();
for (int i=4;i>=1;--i)
{  for (int j=1;j<=i;++j)
   {cout<<"*";
   }
   cout<<"\n";
}
getch();
}

No comments:

Post a Comment

Basic Implementation of Array as a Pointer

#include<iostream.h> #include<conio.h> void main() { clrscr();   int arr[5];   cout<<"Enter 5 nos. ";   f...