Skip to content

Simple Problems on Loops #2

@champaksworldcreate

Description

@champaksworldcreate

Write programs to print the following sequences

  1. 1,2,3,4,5,6,7,8,9,10
  2. 2,4,6,8,10
  3. 1,3,5,7,9
  4. 1,4,9,16,25,36,49,64,81,100
  5. 2,6,12,20,30,42,56,72,90
  6. 1,-1,1,-1,1,-1,1,-1,,,,
  7. 1,-2,3,-4,5,-6,7,-8,9,-10
  8. 3,6,9,12,15,18,21,24,27,30
  9. 0,1,1,2,3,5,8,13,21,34,55
  10. 1,2,4,8,16,32,64,128,256,512,1024

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions