C Programming & Data Structure
Activities
1. Input a number, print numbers from 1 to n.
Hint: Take input a number which determines that how
much numbers you want to print , use for loop to print
numbers form 1 to given numbers by input.
2. Create an array, print squares of numbers from 1 to
10 in that array.
Hint: create an array, use for loop. Multiply numbers
to make square of those numbers.
3. Write a c program to print multiplication table.
Hint: Enter range of multiplied numbers. Use for
loops to repeat numbers . Give range in first for loop
of entered range number variable
4. Printing ASCII characters using c program from 1 to 255.
Hint: Use for loop to print ASCII characters from 1 to 255.
Use %c to print characters.
5. Print A-Z letters using for loop.
Hint: Use for loop , declare a character variable and
initialize that variable to ‘a’ and compare it till ‘z’.

C activities

  • 1.
    C Programming &Data Structure Activities
  • 2.
    1. Input anumber, print numbers from 1 to n. Hint: Take input a number which determines that how much numbers you want to print , use for loop to print numbers form 1 to given numbers by input. 2. Create an array, print squares of numbers from 1 to 10 in that array. Hint: create an array, use for loop. Multiply numbers to make square of those numbers. 3. Write a c program to print multiplication table. Hint: Enter range of multiplied numbers. Use for loops to repeat numbers . Give range in first for loop of entered range number variable
  • 3.
    4. Printing ASCIIcharacters using c program from 1 to 255. Hint: Use for loop to print ASCII characters from 1 to 255. Use %c to print characters. 5. Print A-Z letters using for loop. Hint: Use for loop , declare a character variable and initialize that variable to ‘a’ and compare it till ‘z’.