Monday 27 August 2012

c program | array code| if loop examples

 C program code for array program using if loop , example

how to  write c program code for array program using if loop
 #include<stdio.h>
void main()
{
   int i,j=0,no[5];
  clrscr();
   printf("Enter Elements In Array:=");
    for(i=1;i<=5;i++)
   {
     scanf("%d",&no[i]);
    if (no[i]>50)
      j++;
   }
   printf("In Array There are No. >50's:= %d",j);
     getch();
  }
examples of array program using if loop
Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: