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
How can I recover the file name given an open stream?
what are bit fields? What is the use of bit fields in a structure declaration?
Explain pointers in c programming?
What is void main ()?
What is scope and lifetime of a variable in c?
Can we change the value of static variable in c?
What is the use of a static variable in c?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
What is the difference between exit() and _exit() function in c?
How do you generate random numbers in C?
What is a built-in function in C?
What are pointers? Why are they used?
Difference between Shallow copy and Deep copy?
How do you print only part of a string?
What does stand for?