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();
}
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.
[object Object]
// 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 < sizeof (numbers)/sizeof(int); i++) sum += i; return sum; }
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.
create a program that iterates until it finds a perfect number, then store that perfect number into an array. Continue iterating until you find three more. Then, you have an array of four perfect numbers.
There are a number of advantages of HTML but a number of constraints too. You cannot use conditioning statements in HTML.
Any type will do, here is an example: for (leave= 0, nnum= 0; ! leave; ) { rc= scanf ("%d", &number); if (rc!=1 number==-1) { leave=1; continue; } ++nnum; ... do something with number ... }
// 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 < sizeof (numbers)/sizeof(int); i++) sum += i; return sum; }
Identities are statements that are true for any number.
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).
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.
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.
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.
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.
Given that an integer is the same as a whole number, there are four true conditional statements.
Coefficient
The number of persons responding has exceeded all expectation.
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.
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............