answersLogoWhite

0


Best Answer

main()

{

int age[100],count=0,i;

clrscr();

for(i=0;i<100;i++)

{

printf(" enter the person age %d",i);

scanf("%d",&age[i]);

}

for(i=0;i<100;i++)

{

if(age[i]>=50 && age[i]<=60)

{

++count;

}

}

printf(" no.of persons in the age group 50 to 60 is %d",count);

getch();

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
User Avatar

Milan Khawas

Lvl 1
1y ago
Where is output
More answers
User Avatar

Wiki User

9y ago

Read the age of the 100 people from the database. Then compare each if it is greater than or equal to 50 and less than or equal to 60. If a hit is got declare a variable for counter and increment by 1. The end value of the counter after the read of all 100 person is the result.

This answer is:
User Avatar

User Avatar

Sheikh Md Rakibul Ha...

Lvl 2
1y ago

[object Object]

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: 1 Write a 'c' program to read the age of 100 persons and count the number of persons in the age group 50 to 60.use for loop and continue statements?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

C program for Sum of n number using if else statements?

// Why do you need if/else statements? int main() { int numbers[] = {1, 2, 3, 4, 5, 6}; // and so on int i; int sum = 0; for(i = 0; i &lt; sizeof (numbers)/sizeof(int); i++) sum += i; return sum; }


Statements that are true for any number?

Identities are statements that are true for any number.


What is the difference between Do While statements and Do For statements?

A "do while....." statement is a looping instruction to a program to repeat a stage in the program while some condition is true - e.g while a variable is negative, or, while one variable is less than another. A "do for ....." statement is a looping instruction to a program to repeat a stage in the program a set number of times - e.g for steps = 1 to 10, or, for steps = 1 to (some variable).


Is big foot rile?

Not really, but the number of persons who have seen the creatures is something to think about. In the program "In search of bigfoots" you will be amazed by the number of people giving their experience with the creature.


Is there real proof of bigfoot?

Not really, but the number of persons who have seen the creatures is something to think about. In the program "In search of bigfoots" you will be amazed by the number of people giving their experience with the creature.


Control statements in java?

A programming language uses control statements to cause the flow of execution to advance and branch based on changes to the state of a program. control statements are mainly three types in java. they are selection, iteration, and jump.


What is the purpose of a hospital disaster response plan?

For INTERNAL disasters, to minimize the chance of injury or death, and permit the facility to continue to operate. For EXTERNAL disasters, to permit the facility to continue to operate, and to provide medical care to the largest number of persons possible.


How many true conditional statements may be written using the following statements n is a rational number n is a integer n is a whole number?

Given that an integer is the same as a whole number, there are four true conditional statements.


What are statements that are true for any number?

Coefficient


What is a sentence for persons?

The number of persons responding has exceeded all expectation.


How can people debate that big foot is real?

Debating about the subject, is not good. There is no real evidence. But the number of persons who have seen the creatures is something to think about. In the program "In search of bigfoots" you will be amazed by the number of people giving their experience with the creature.


How do you get a persons army serial number?

now days a military serial number is the assigned social security number. find the persons social security number and you have the army serial number............