can please someone teach me how to create this program using
while statement.. this is the output should look like
0
2
4
6
8
10
-thanks.. :) need it asap...
Answer Posted / manish soni bca 3rd year jaipu
#include<stdio.h>
#include<conio.h>
void main()
{
int cnt,term;
cnt=0;
while(cnt<6)
{
cnt+=1;
term=(cnt*2-1)^1;
printf("%d\n",term);
}
getch();
}
manish soni tagore biotech collage jaipur
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a wrapper function in c?
What are identifiers c?
Is it possible to initialize a variable at the time it was declared?
What is null in c?
What is preprocessor with example?
Can I initialize unions?
Can the curly brackets { } be used to enclose a single line of code?
What are the advantages of using linked list for tree construction?
What is scope and lifetime of a variable in c?
formula to convert 2500mmh2o into m3/hr
Is c compiled or interpreted?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
Can main () be called recursively?
What is "Hungarian Notation"?
What are the features of the c language?