Answer Posted / dally
#include<stdio.h>
int main()
{
int n,i;
printf("Enter values for n\n");
scanf("%d",&n);
for(i=0;i<=n;i++)
{
if(i%2 != 0)
printf("%d",i);
}
}
| Is This Answer Correct ? | 10 Yes | 16 No |
Post New Answer View All Answers
What are the different types of data structures in c?
What is null pointer constant?
What are the 4 types of programming language?
Why we use int main and void main?
What is the data segment that is followed by c?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What is c basic?
Explain what are bus errors, memory faults, and core dumps?
Write a program of advanced Fibonacci series.
What do you mean by a sequential access file?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures
Explain goto?
What is unsigned int in c?
What is stack in c?
What is exit() function?