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
What is volatile c?
By using C language input a date into it and if it is right?
Write a program for finding factorial of a number.
formula to convert 2500mmh2o into m3/hr
How do you generate random numbers in C?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
Explain that why C is procedural?
What are external variables in c?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
How can I call a function with an argument list built up at run time?
What is the use of function in c?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
What is the scope of global variable in c?
What are the 4 types of organizational structures?
What is derived datatype in c?