You are here:   HomeC Programming (Pratical)C Program Print The Number
by Dinesh Thakur Category: C Programming (Pratical)

 

 



#include<stdio.h>

main()
{
  int a[5],i,num;
  clrscr();
  for(i=0;i<=4;i++)
    {
      printf("enter the values of 1st matrix=");
      scanf("%d",&a[i]);
    }
    printf("enter the value you want to search");
    scanf("%d",&num);
      for(i=0;i<=4;i++)
         {
            if(num==a[i])
              {
                 printf("number is present=%d",num);
                 break;
              }
         }
         if(i>4)
         printf("number is not present");
 getch();
}
 


Search Content







Advance Courses



Basic Courses



Advertise with Us