write a program for odd numbers?

Answer Posted / roopali

#include<stdio.h>
void main()
{
int i;
clrscr();
printf("\n odd numbers?");
scanf("%d",&n);
for(i=0;i<=n;i++)
print i=i+1;
printf("\n %d",i);
getch();
}

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by gets in c?

627


formula to convert 2500mmh2o into m3/hr

515


number of times a digit is present in a number

1554


Why c language?

666


How do you search data in a data file using random access method?

867






What is the difference between text and binary i/o?

609


What is preprocessor with example?

607


Explain about the functions strcat() and strcmp()?

610


How variables are declared in c?

587


What is array of pointers to string?

587


How can you read a directory in a C program?

666


What are the 4 types of programming language?

601


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

1907


What is the newline escape sequence?

601


How is pointer initialized in c?

603