EASY 2 LEARN 'C'
Home
DotNet
Tuesday, 28 August 2012
program for while loop
Program for while loop
syntax
:-
while(condition)
{
statements;
incrementation/decrementation;
}
Example for printing 1 to 10
:-
#include<stdio.h>
main()
{
int i=1;
clrscr();
while(i<=10)
printf("%d\n",i++);
getch();
}
output
:- 1
2
3
4
5
6
7
8
9
10
0 comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Search Box
'C' Language
'C' Programming
(27)
Arrays in 'C'
(5)
Interview Que's about 'C'
(8)
Strings in 'C'
(4)
Popular Posts
Headerfiles
HEADER FILES Data ------ > Collection of information. File --...
Approaches and Algorithm of 'C'
Approaches of 'C' Language :- These are 4 types. * Procedural Language. * Logical...
your tiny steps towards programming
Your tiny steps towards programming Programming Language is divided in to two types. > ...
Simple 'c' program
Simple "C-Program" #include<stdio.h> //Header file main() ...
Sections and Rules in 'C'
Sections in 'C' :- Sections are divided into 7 types, * Documentation Section. ...
HR interview questions part2
Tell me about yourself? Why should I employ you in my company? What do you know about our company? Why did you choose our company...
One dimensional array example 2
One dimensional array example /* program to calculate sum of 10 numbers in an array */ #inc...
Logical Interview Questions2
Logical Interview Questions There are three boxes with fruits: one box with apples, one bo...
addition of 2 variables by using static values
Addition of 2 variables Static values are constant.we can't change the v...
Pointers introduction
Pointer :- · It is avariable that represents the location of a data item. · It can be declared as a variable ...
0 comments:
Post a Comment