Answer Posted / vinay kumar gupta
#include <stdio.h>
#include<conio.h>
void main()
{
int i,lim;
clrscr();
printf("enter the limit \n");
scanf("%d",&lim);
for(i=1;i<=lim;i++)
{
if (i%2==0)
}
printf("even no. are= %d",i);
getch();
}
| Is This Answer Correct ? | 10 Yes | 11 No |
Post New Answer View All Answers
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
What is the code for 3 questions and answer check in VisualBasic.Net?
c language interview questions & answer
How do shell structures work?
code for find determinent of amatrix
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
What is variable in c example?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
Which control loop is recommended if you have to execute set of statements for fixed number of times?
Why is void main used?
Is there a way to jump out of a function or functions?
What is 2 d array in c?
How many levels of indirection in pointers can you have in a single declaration?
What is string length in c?
List the difference between a 'copy constructor' and a 'assignment operator' in C?