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
How is stl different from c++ standard library?
Who created stl?
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
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
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.
Who wrote stl?
What two types of containers does the stl provide?
Is stl open source?
What is a stl vector?
Is stl part of c++ standard?
What are the various types of stl containers?
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.
Is string part of stl?
Do you like to Submit Questions in Bulk under Same Category?? Then use our Bulk ListerDo you like to Submit Questions in Bulk under Same Category?? Then use our Bulk Lister
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.