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 / 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 |
Post New Answer View All Answers
What is the difference between pure virtual function and virtual function?
What are the different types of errors?
Write a code to generate divisors of an integer?
What is the process to create increment and decrement stamen in c?
Differentiate between null and void pointers.
What is nested structure?
Differentiate between a structure and a union.
Do variables need to be initialized?
What is the difference between typedef struct and struct?
What are shell structures used for?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
Explain what are the different data types in c?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
write a program fibonacci series and palindrome program in c
What is a char c?