write a program that input four digit number and find how
many 7 that number contains
Answer Posted / gundaraj
void main()
{
int a[4],i,count=0;
cout<<"enter 4 digit number";
for(i=0;i<=3;i++)
{
cin>>a[i];
if(a[i]==7)
count++;
}
cout<<"The number of 7's are "<<count;
}
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command
Who created stl?
What does stl stand for in basketball?
What is stl in oop?
What is a standard template library (stl)?
What is the stl, standard template library?
If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: The population growth rate is given by the formula: B – D Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number of years. The program should then calculate and print the estimated population after n years. Your program must have at least the following functions: 1. growthRate: This function takes its parameters the birth and death rates, and it returns the population growth rate. 2. estimatedPopulation: This function takes its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years Your program should not accept a negative birth rate, negative death rate, or a population less than 2. please answer my question ....
What is a list in c++ stl?
Can we use stl in coding interviews?
Is stl open source?
write a program that will accept a number and print.its equivalent in words the maximum input number is 9999
Name the different types of stl containers.
how to making game in c++ ?
help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.