write a program for odd numbers?

Answer Posted / lakhan patidar

#include<stdio.h>
#include<conio.h>
void main()
{
int num;
clrscr();
printf("enter ur range:");
scanf("%d",&num);
for(i=1;i<=num;i+2)
printf("%d",num);
getch();
}

Is This Answer Correct ?    16 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need arrays in c?

589


What is volatile keyword in c?

587


Write a program to find factorial of a number using recursive function.

648


Do pointers take up memory?

661


What is declaration and definition in c?

528






What is a static function in c?

624


Is c language still used?

540


What are the features of the c language?

650


what is a constant pointer in C

682


What are formal parameters?

664


What is structure packing in c?

612


which is conditional construct a) if statement b) switch statement c) while/for d) goto

741


What is c variable?

556


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

1866


What are the disadvantages of c language?

624