Powered By Blogger

Monday, May 4, 2009

C Programming

#include
#include
#include
void main()
{
int b,a[50],i,j;
clrscr();
printf("Enter a number: ");
scanf("%d",&b);
printf("Enter %d numbers :",b);
for(i=0;i
{
printf("\nDigit[%d]",i+1);
scanf("%d",&a[i]);
}
printf("\nYour result is:\n");
for(i=0;i<=9;i++)
{
printf("\n%d ",i);
for(j=0;j
{
if(i==a[j])
printf("^");
}
printf("\n");
}
getch();
}

0 comments:

About This Blog

This is an important blog about updated news about computer science and technology.

Blog Archive

Visitors

  © Free Blogger Templates Blogger Theme II by Ourblogtemplates.com 2008

Back to TOP