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
Why do we use header files in c?
Explain what is a static function?
What are qualifiers?
Explain what is a 'locale'?
what is the role you expect in software industry?
Write a C program in Fibonacci series.
Compare interpreters and compilers.
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
What is the difference between a string and an array?
What is the advantage of a random access file?
what is recursion in C
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What is the difference between constant pointer and constant variable?
What are the different types of C instructions?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)