[ create a new paste ] login | about

Link: http://codepad.org/9MMzliNi    [ raw code | output | fork ]

Rituparnadatta - C, pasted on Sep 19:
1
2
3
4
5
6
7
8
9
10
11
12
//loop and display the number//
#include<stdio.h>
int main ()
{
int i;
printf("Display the number:\n");
for(i=135; i<=150; i=i+1)
{
printf("%5d\n",i);
}
return 0;
}


Output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Display the number:
  135
  136
  137
  138
  139
  140
  141
  142
  143
  144
  145
  146
  147
  148
  149
  150


Create a new paste based on this one


Comments: