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
Explain stl.
What is a standard template library (stl)? What are the various types of stl containers?
What is the stl, standard template library?
What are stl algorithms?
In what scenario does the Logical file and Physical file being used?
Name the different types of stl containers.
Can we use stl in coding interviews?
What is a standard template library (stl)?
What is stl stack?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
How stl is different from the c++ standard library?
Why should a c++ programmer be interested in stl?
sir please send me bpcl previous question papers
what is template and type convertion
What are the symptoms of stl?