Answer Posted / sadakrishnaj
to print numbers which are even from 1 to 100
#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
int a;
printf("enter the no");
scanf("%d",&a);
if(a%2==0)
{
printf("no is even");
}
else
{
printf("odd no");
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can a process change an environment variable in its caller?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
What is meant by realloc()?
Differentiate between #include<...> and #include '...'
Explain the ternary tree?
What is %lu in c?
What is the argument of a function in c?
Dont ansi function prototypes render lint obsolete?
what are enumerations in C
What is a loop?
Are the variables argc and argv are always local to main?
Using which language Test cases are added in .ptu file of RTRT unit testing???
Difference between strcpy() and memcpy() function?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
Explain what does a function declared as pascal do differently?