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 is structure in c language?
What is the difference between variable declaration and variable definition in c?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
Explain the difference between exit() and _exit() function?
Difference between constant pointer and pointer to a constant.
Explain how can type-insensitive macros be created?
What are the advantages of using linked list for tree construction?
Describe static function with its usage?
Can we declare variables anywhere in c?
What the advantages of using Unions?
what value is returned to operating system after program execution?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
Which is better between malloc and calloc?
How will you delete a node in DLL?
Which driver is a pure java driver