Search This Blog

Translate

c program to Accept number from user and display it skipping zero

c program to Accept number  from user and display it skipping zero

#include"stdio.h"
#include"conio.h"
void main()
{
char no[10];
int i;
clrscr();
printf("Enter any number=");
gets(no);
printf("\n\n Number with skipping zero is= ");
for(i=0;i<strlen(no);i++)
{
if(no[i]!='0')
{
printf("%c",no[i]);
}
}
getch();
}



c program to Accept number  from user and display it skipping zero

C Program example List

Google+ Badge