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
Define stl.
When did c++ add stl?
How do I convert a stl file?
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.
What two types of containers does the stl provide?
In what scenario does the Logical file and Physical file being used?
What are the components of stl?
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
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
How connect plc and pc through software
How stl is different from the c++ standard library?
write a program to convert a decimal number in to its equivalent binary number?
Is stl open source?
sir please send me bpcl previous question papers
Who wrote stl?