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 |
Explain Doubly Linked Lists?
what is the diff between the printf and sprintf functions?? and what is the syntax for this two functions ??
Difference between C and Embedded C?
can you explain in brief what is "r+" mode in a file... i know that it si used to read and modify rhe existing content.... but explalanation about the file pointer in "r+" mode i wann to know???????????
What is your favorite subject?
1 Answers Ericsson, Invendis, Tech Mahindra,
What is c language and why we use it?
List out few of the applications that make use of Multilinked Structures?
can we define a function in structure?
What is structure padding and packing in c?
Explain can you assign a different address to an array tag?
What does *p++ do?
What's a good way to check for "close enough" floating-point equality?