[B]Sir thanx for your help...but I want to make a simple C function that clears the screen...I dont want to use the definition of clrscr() written in conio.h...[/B]

[B]Hello sir...
I want to know that if we can make a function that exactly works as clrscr()
if yes then please give me some idea to implement that..I will try that...[/B]

[B]Hello sir..
I want to know that if there is any difference between Parameter and Argument of a function[/B]....?

Thanx sir..I will try it when I study about 2-d array...

[QUOTE=Software guy;1321826]First of all you didn't show any work,
the rule is that "you show the work and we help you with it"
it would be nice if you give it a go, and lets see where you get stuck.[/QUOTE]
sir I have tried it and it works except 10-19..... but look its too lengthy.... if I add 90 more lines then it will check for 10-19.... if there any other solution...?

include
include

void main()
{
int arr[15],i=0,no,t,c=0;
clrscr();
printf("enter any number");
scanf("%d",&no);
while(no!=0)
{
c++;
t=no%10;
arr[i++]=t;
no=no/10;
}
i--;
//printf("%d\n",c);
for(;i>=0;i-- )
{
switch(arr[i])
{
case 1:
if(c!=2)
printf("one\n");
if(c%4==0)
//printf("one\n");
printf("thousand\n");
else if(c%3==0)
printf("hundred\n");
else if(c%2==0)
{
switch(arr[c-1])
{
case 2:
printf("twenty");
break;
case 3:
printf("thirty");
break;
case 4:
printf("forty");
break;
case 5:
printf("fifty");
break;
case 6:
printf("sixty");
break;
case 7:
printf("seventy");
break;
case 8:
printf("eighty");
break;
case 9:
printf("ninty");
break;
}
}
break;
case 2:
if(c!=2)
printf("two\n");
if(c%4==0)
printf("thousand\n");
else if(c%3==0)
printf("hundred\n");
else if(c%2==0)
{
switch(arr[c-1])
{
case 2:
printf("twenty");
break;
case 3:
printf("thirty");
break;
case 4:
printf("forty");
break;
case 5:
printf("fifty");
break;
case 6:
printf("sixty");
break;
case 7:
printf("seventy");
break;
case 8:
printf("eighty");
break;
case 9:
printf("ninty");
break;
}
}
break;
case 3:
if(c!=2)
printf("three\n");
if(c%4==0)
printf("thousand\n");
else if(c%3==0)
printf("hundred\n");
else if(c%2==0)
{
switch(arr[c-1])
{
case 2:
printf("twenty");
break;
case 3:
printf("thirty");
break;
case 4:
printf("forty");
break;
case 5:
printf("fifty");
break;
case 6:
printf("sixty");
break;
case 7:
printf("seventy");
break;
case 8:
printf("eighty");
break;
case 9:
printf("ninty");
break;
}
}
break;
case 4:
if(c!=2)
printf("four\n"); ...

[B]hello sir..
I am not being able to make a program that accepts any number and displays it in words....
for example: when user enter 3456 then output should be three thousand four hundred fifty six.... 12 then print twelve.....9 then print nine...and so on....[/B]