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
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
write a c program to find the sum of five entered numbers using an array named number
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
What is a struct c#?
What is the use of getchar() function?
What is the purpose of sprintf?
Between macros and functions,which is better to use and why?
What is a pointer in c?
Is it better to use malloc() or calloc()?
Describe newline escape sequence with a sample program?
What are the different properties of variable number of arguments?
What is the best way to comment out a section of code that contains comments?
Explain the use of 'auto' keyword in c programming?
What does %c mean in c?
What is pivot in c?