ankitweblogic logo
W e b t u t o r i a l s

Programing Approach

Algorithm

Flow Chart

Define C

Define Programming

C - Syntax

C - Variables

C - Keywords

C - Data Types

C - Comments

Turbo C - Shortcut keys

C - Operators

Hierarchy of Operators

Ex: Arithmetic Operator

Constant Variable

C - Escape Sequence

Control Structure - if

Ex: If condition

Ex: Inc / Dec Operator

C - loops

Ex: Loops

C - Nesting Of loops

Ex: Nested Loops

Jumping Statements

C - Arrays 1D

C - Arrays 2D

C - Sorting

ASCII Value

Character I/O Function

C - Strings

Ex: Strings

Array of Strings

C - Math Functions

User-defined Function

Exercise Function

C - Types of Functions

Storage Class

C - Header Files

C - Preprocessor

C - Pointers

C - Structures

C - Typedef

C - File Handling

Ex: File Handling

Command Line Argument

MCQ

Exercise - Nested Loop

  1. Generate the series:
    1
    12
    123
    1234
    12345

  2. 12345
    1234
    123
    12
    1

  3. *
    * *
    * * *
    * * * *
    * * * * *

  4. 54321
    4321
    321
    21
    1

  5. 54321
    5432
    543
    54
    5

  6. 1
    12
    123
    1234
    12345
    1234
    123
    12
    1

  7.       1
         12
       123
     1234

  8.     *
       * *
      * * *
       * *
        *

  9. A B C D E
    A B C D
    A B C
    A B
    A

  10. A
    A B
    A B C
    A B C D
    A B C D E

  11. 1 1 1 1 1
    1 0 0 0 1
    1 0 0 0 1
    1 0 0 0 1
    1 1 1 1 1

  12. Generate:
    - - - - -
    + - + - +
    - + - + -
    + - + - +
    - - - - -
  13. WAP to find factorial of 1st 10 numbers.
  14. Print Prime number in a given range.
  15. Find composite numbers between 2 to 1000.
  16. Find sum of series: 1 + x + x2 + x3 + ... xn
  17. Find sum of series: c series program
  18. Find sum of series: c series program
  19. Sin(x) = x – (x3 / 3!) + (x5 / 5! ) – (x7 / 7! ) + …
  20. Print the following pattern if the line input is 5.
    ABCDEDCBA
    ABCD  DCBA
    ABC       CBA
    AB           BA
    A               A
Updated: 14-Feb-19