You are on page 1of 1

#include<stdio.h>#include<conio.

h>
int i = 0;
while (i < 100)
{
printf("Welcome to C!");
i++;
}
============================
Printf 100 times
include<stdio.h>#include<conio.h>
int i;
for (i=0;i<100;i++)
{
printf("Welcome to C");
}
============================
int i=1;
while (i<=10)
{
printf("i is %d\n",i);
i++;
}
getch();
=============================
#include<stdio.h>#include<conio.h>
int i=0;
do
{
printf("i is %d,i);
i++;
} while (i<10);
#include<stdio.h> #include<conio.h>
int i=10;
while (i>=1)
{
printf("i is %d\n",i);
i--;
}
getch();
- --------------------------------------------------#include<stdio.h> #include<conio.h>
int i;
for (i=1; i<=10; i++)
{
printf("i is %d\n",i);
}
- --------------------------------------------------#include<stdio.h>
#include<conio.h>
main()
{
int
i = 10, j = 12; float k, m = 12.6;
k = (i + j) / m;
printf(Input : %d %d %f f, i, j, m);
printf(\nOutput : %f , k);
} getch(); }