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
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
0 comments: