Answer Posted / shruti
to print numbers which are even from 0 to 100
main()
{
int i;
puts("THE EVEN NUMBERS ARE:");
for(i = 0 ; i <= 100 ; i++)
{
if(i%2 == 0)
printf("%d", i);
}
}
Is This Answer Correct ? | 23 Yes | 14 No |
Post New Answer View All Answers
Explain why c is faster than c++?
p*=(++q)++*--p when p=q=1 while(q<=6)
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
What is the general form of function in c?
What does %p mean?
How can I automatically locate a programs configuration files in the same directory as the executable?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
Describe the modifier in c?
What is the use of getchar functions?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
Can you apply link and association interchangeably?
Why is struct padding needed?
How can I find out if there are characters available for reading?
What is the scope of global variable in c?
What are reserved words?