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
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 |
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 |
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 |
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 |
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 |
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 |
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 |
What does malloc () calloc () realloc () free () do?
Is c is a middle level language?
what is the function of void main()?
write a program fibonacci series and palindrome program in c
0 Answers Aditi Placement Service,
what is differnence b/w macro & functions
which one low Priority in c? a)=,b)++,c)==,d)+
Which of the following about automatic variables within a function is correct ? a.its type must be declared before using the variable b.they are local c.they are not initialised to zero d.they are global.
what is Array?
write a c program to print a given number as odd or even without using loop statements,(no if ,while etc)
what is the difference between : func (int list[], ...) or func (int *list , ....) - what is the difference if list is an array and if also if list is a pointer
a simple program in c language
What is void c?