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...

Answers were Sorted based on User's Feedback



can please someone teach me how to create this program using while statement.. this is the output s..

Answer / rameshwari

#include<stdio.h>
#include<conio.h>
void main()
{
int i=0;
while(i<=9)
{
printf("%d", i);
i=i+2;
}
getch();
}

Is This Answer Correct ?    4 Yes 3 No

can please someone teach me how to create this program using while statement.. this is the output s..

Answer / 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

can please someone teach me how to create this program using while statement.. this is the output s..

Answer / sandeep kumar yadav

#include<stdio.h>
#include<conio.h>
void main()
{
int i=0;
clrscr();
while(i<=10)
{
printf("%d\n",i);
i+=2;
}
getch();
}

Is This Answer Correct ?    1 Yes 0 No

can please someone teach me how to create this program using while statement.. this is the output s..

Answer / ashish rajvanshi

#include<stdio.h>
#include<conio.h>
void main()
{
int i;
for(i=0;i<=10;i=i+2)
printf("%d\n",i);
}

Is This Answer Correct ?    2 Yes 3 No

can please someone teach me how to create this program using while statement.. this is the output s..

Answer / parth ujenia

#include<stdio.h>
#include<conio.h>
void main()
{
int i=0;
while(i<=9)
{
printf("%d", i+2);
}
getch();
}

Is This Answer Correct ?    1 Yes 5 No

can please someone teach me how to create this program using while statement.. this is the output s..

Answer / prakash kavar

#include<stdio.h>
#include<conio.h>
void main()
{
int i=0;
while(i<=9)
{
printf("%d", i+2);
i=i+2;
}
getch();
}

Is This Answer Correct ?    0 Yes 5 No

can please someone teach me how to create this program using while statement.. this is the output s..

Answer / ajit kumar shrivastav

#include<conio.h>
#include<stdio.h>
void main();
{ flaoat num;
scanf(enter a number);
printf("%f",res);
res=num*2;
getch();
}

Is This Answer Correct ?    0 Yes 6 No

Post New Answer

More C Interview Questions

What is NULL pointer?

0 Answers   Infosys,


What are the header files used in c language?

0 Answers  


Can we access array using pointer in c language?

0 Answers  


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

0 Answers  


What is function in c with example?

0 Answers  






What is the difference between c &c++?

0 Answers  


in malloc and calloc which one is fast and why?

1 Answers  


in b=6.6/a+(2*a+(3*c)/a*d)/(2/n); which operation will be performed first a) 6.6/a b) 2*a c) 3*c d) 2/n

1 Answers  


why we need function pointers?

3 Answers  


What is d'n in c?

0 Answers  


What is an anonymous union and where to apply that ?

3 Answers   HP,


what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); }

1 Answers   Motorola,


Categories