ito po yung code ko hindi ko na po alam kung paano yung last part
#include<stdio.h>
#include<conio.h>
int main()
{
int num[10]={0};
int ctr=0;
for(ctr=0; ctr<10; ctr++)
{
printf("Enter element of num[%d]:", ctr);
scanf("%d", &num[ctr]);
}
printf("\n*********Printing all the contents of the array\n");
for(ctr=0; ctr<10; ctr++)
{
printf("num[%d]=%d", ctr, num[ctr]);
printf("\n");
}
printf("*********Printing the contents excluding the highest number\n");
for(ctr=0; ctr<10; ctr++)
{
printf("num[%d]=%d", ctr, num[ctr]);
printf("\n");
}
if (ctr!=90){
printf("num[%d]=%d", ctr, num[ctr]);
}
return 0;
}
#include<stdio.h>
#include<conio.h>
int main()
{
int num[10]={0};
int ctr=0;
for(ctr=0; ctr<10; ctr++)
{
printf("Enter element of num[%d]:", ctr);
scanf("%d", &num[ctr]);
}
printf("\n*********Printing all the contents of the array\n");
for(ctr=0; ctr<10; ctr++)
{
printf("num[%d]=%d", ctr, num[ctr]);
printf("\n");
}
printf("*********Printing the contents excluding the highest number\n");
for(ctr=0; ctr<10; ctr++)
{
printf("num[%d]=%d", ctr, num[ctr]);
printf("\n");
}
if (ctr!=90){
printf("num[%d]=%d", ctr, num[ctr]);
}
return 0;
}
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.