write a program which take a string give it permutations and combination

#include<conio.h>
#include<stdio.h>
#include<iostream.h>
#include<stdlib.H>
void main(void)
{
 clrscr();
 char a[3]
 //cout<<"ent int "<<endl;
 //cin<<a;
 atoi(a)
 for(a=1;a<=3;a++)
 {
  for(b=1;b<=3;b++)
  {
   for(c=1;c<=3;c++)
   {
   cout<<a<<b<<c<<endl;
   }
    }
 }
getch();
}

now that you stated your assignment problem, what are your questions?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.