Docstoc

ARRAYS PROGRAM C++

Document Sample
ARRAYS PROGRAM C++ Powered By Docstoc
					#include<iostream.h>
#include<conio.h>

main()
{
         int x,z;
         int arr[4];
         cout<<"Enter ur no.="<<endl;
         cin>>x;
         z=x%10;
         x=x/10;
         arr[0]=z;
         z=x%10;
         x=x/10;
         arr[1]=z;
         z=x%10;
         x=x/10;
         arr[2]=z;
         z=x%10;
         x=x/10;
         arr[3]=z;
         for(int i=0;i<4;i++){
                  cout<<arr[i];
                  }
         getch();

         }


out put ::

enter    ur no
1234
4321

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:9
posted:9/22/2012
language:Romanian
pages:1
Description: ARRAYS PROGRAM C++