rabbinur

Loop

Aug 1st, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include"iostream.h"
  2. #include"conio.h"
  3. //Write a program which will show SELIM 5 times
  4. void main()
  5. {
  6.  clrscr();
  7.  int n,i;
  8.  for(i=1;i<=50;i++)
  9.  {
  10.   cout<<i;
  11.   //cout<<"SELIM";
  12.   cout<<endl;
  13.  }
  14.  getch();
  15. }
  16.  
  17. //Series
  18. #include"iostream.h"
  19. #include"conio.h"
  20. //Write a program which will show SELIM 5 times
  21. void main()
  22. {
  23.  clrscr();
  24.  int n,i;
  25.  for(i=0;i<=50;i=i+5)
  26.  {
  27.   cout<<i;
  28.   //cout<<"SELIM";
  29.   cout<<endl;
  30.  }
  31.  getch();
  32. }
Advertisement
Add Comment
Please, Sign In to add comment