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
What does stl stand for in basketball?
Can we use stl in coding interviews?
What is a standard template library (stl)? What are the various types of stl containers?
What is stl stack?
What is meant by stl in c++?
What are the symptoms of stl?
Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A.Explain how a pointer to function can be declared in C++? B.List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header (“Include”) Files.
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.
When did c++ add stl?
What are the different types of stl containers?
How do you convert stl to steps?
Is string part of stl?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html
Name the different types of stl containers.