answersLogoWhite

0


Best Answer

struct student
{
nt regno,mark[4],avg;
char name[10];
};
void main()
{
student s[100];
int i,j,t=0;
printf("enter student DETAILES\n");
for(i=0;i<100;i++)
{
printf("ENTER REGISTER NO : ");
scanf("%d",&s[i].regno);
printf("ENTER NAME : ");
scanf("%s",s[i].name);
printf("ENTER FOUR MARKS \n");
s[i].avg=0;
for(j=0;j<4;j++)
{
scanf("%d",&s[i].mark[j]);
t=t+s[i].mark[j];
}
s[i].avg=t/100;
}
printf("THE STUDENTS INFORMATION \N");
for(i=0;i<100;i++)
{
printf("\n REGISTER NUMBER : %d",s[i].regno);
printf("\n NAME : %s",s[i].name);
printf("\n AVERAGE MARK : %d",s[i].avg);
}
getch();
}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are some examples of simple programs that use different iteration statements to find the average academic marks of 100 students?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are some examples of words used to contrast statements?

Some examples of transitional words used to contrast statements are:butoryetstillratherthoughinsteadhoweverotherwiseconverselyalternativelynonethelessneverthelessnotwithstanding


What are some examples of untrue statements?

The following statements are examples of ones that are untrue; the door is the part of the house that you walk on, the winter is the coldest part of the year in the southern hemisphere.


What are some examples of non academic achievement?

Non academic achievement is any accomplishment that happens outside of the classroom. Some examples of non academic achievement are sports achievements, musical achievements, overcoming personal struggles, and charity work.


What were two examples of Confucius statements in Mulan?

Clement cena


Ladderized if or else conditional statement?

In a ladderized if-else conditional statement, multiple if-else blocks are used to check conditions in a hierarchical order. As soon as a condition is met, the corresponding block of code executes, and subsequent conditions are not checked. This approach helps streamline the logic flow and prevents unnecessary checks once a condition is satisfied.


Independent and dependent variables are found in statements of causality but not in statements of association?

True. Good examples are shown in related links.


Where can you find examples of meiosis?

For information on a) meiosis (medical) and b) examples of rhetorical statements see the related link below.


What are the examples of general statements?

The inventions of both the Wright's brother and Henry ford.


Does every statement have a counter example?

Only some statements have both examples and counter examples. A sufficiently clear and unambiguous statement would not have counter examples.


Where can one find examples of mission statements?

A mission statement is a statement that describes what a company stands for. One can find examples of mission statements at sites such as Your Dictionary, or Grant Space. One can also go to most large company websites to see real life examples.


How would you search the Internet to find at least three examples of mission statements?

There are many ways to search the internet for mission statements. One method is to simple type into the search box 'mission statement examples'. Another way is to go to specific company sites, such as Fortune 500 companies and look at their mission statements.


What are good thesis statements about tornado?

Provide the latest statistics and relevant examples of damages. Analyze the effects of tornadoes on nature. Inform readers about different prevention practices and explain how they can prepare for these natural disasters