write a program that input four digit number and find how
many 7 that number contains
Answer Posted / ruchi
#include<stdio.h>
#include<conio.h>
int main()
{
int num,n,i=0,p;
printf("\nEnter the number ");
scanf("%d",&num);
while(num>0)
{
n=num%10;
p=num/10;
num=p;
if(n==7)
{
i++;
}
}
printf("\nthe total number of occurence of the digit 7
is %d",i);
getch();
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Is string part of stl?
What is stl stand for?
What is a stl vector?
What two types of containers does the stl provide?
What is stl stack?
What are the various types of stl containers?
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
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
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
How do you convert stl to steps?
Who created stl?
What is stl in oop?
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
how to making game in c++ ?
Explain stl.