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
What is 1d array in c?
How can a process change an environment variable in its caller?
What do you know about the use of bit field?
What is scanf_s in c?
What is difference between Structure and Unions?
Can you subtract pointers from each other? Why would you?
What is a pointer in c plus plus?
Where register variables are stored in c?
What are examples of structures?
How do you list files in a directory?
pierrot's divisor program using c or c++ code
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
What is the translation phases used in c language?
Write a code to generate a series where the next element is the sum of last k terms.
What is const volatile variable in c?