Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
263 kaklik 1
#include <stdio.h>
2
#include <math.h>
3
 
4
int main (void)
5
{
6
  float i;
7
  int b,x,y;
8
 
9
  printf("for: \n   ");
10
  for(i=1.1;i<10;i+=1.1)
11
  {
12
	printf("%2.1f ",i);
13
  }
14
 
15
  printf("\nwhile: \n   ");  
16
  i=1.1;
17
  while(i<10)
18
  {
19
	printf("%2.1f ",i);
20
	i+=1.1;
21
  }
22
 
23
  printf("\ndowhile: \n   ");  
24
  i=1.1;  
25
  do
26
  {
27
    printf("%2.1f ",i);
28
    i+=1.1;
29
  }
30
  while (i<10);
31
 
32
  printf("\nAbeceda: \n   ");
33
  for(b='a';b<='z';b++)
34
  {
35
    printf("%c ",b);  
36
  }
37
 
38
  printf("\nNasobilka: \n   ");
39
  for(y=1;y<=10;y++)
40
  {
41
    for(x=1;x<=10;x++)
42
    {
43
	  printf("%4d ",(x*y));
44
    }
45
	printf("\n   ");
46
  }
47
}