count the numbers between 100 and 300, that star
with 2 and ends with 2
Answer Posted / amit sachan
int main()
{
int r,i,q,count=0;
for(i=100;i<300;i++)
{
r=i%10;
q=i/100;
if(r==2&&q==2)
count++;
}
printf("the total no=%d",count)
return(0);
}
| Is This Answer Correct ? | 40 Yes | 1 No |
Post New Answer View All Answers
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What is n in c?
What is dynamic dispatch in c++?
What is the use of linkage in c language?
What is a void pointer? When is a void pointer used?
Array is an lvalue or not?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
Can we use any name in place of argv and argc as command line arguments?
the question is that what you have been doing all these periods (one year gap)
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
Implement bit Array in C.
What is multidimensional arrays
What is hungarian notation? Is it worthwhile?
Write a program to print ASCII code for a given digit.
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above