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’.

More Related Content

PDF
Calc. Practice 2 (1º ESO)
PDF
Cs8261 cp lab syllabus
PDF
Calc. Practice 3 (1º ESO)
DOC
Md university cmis 102 week 3 hands
DOC
Comp 122 lab 3 lab report and source code
PDF
C programming exercises and solutions
PPTX
Exercise6 ch2
PDF
IS 139 Assignment 2
Calc. Practice 2 (1º ESO)
Cs8261 cp lab syllabus
Calc. Practice 3 (1º ESO)
Md university cmis 102 week 3 hands
Comp 122 lab 3 lab report and source code
C programming exercises and solutions
Exercise6 ch2
IS 139 Assignment 2

What's hot (14)

PDF
Taller datos agrupados y no agrupados co1101 franyuri y vilmary
PPTX
Impact of error
PPTX
Example for histogram
PPTX
3.3 graphs of exponential functions
PPTX
8.1 exponential growth
PDF
17. two cointosstouchpad
DOCX
PYTHON PROGRAMS
PPTX
Nspire--iPadAppTutorial--Parallel and Perpendicular Lines
PDF
Part I (1.5 points) Write a C++ program that reads a line from the key...
PDF
Day 6 examples
PDF
Calculus of variations
DOC
COMR40S Govt Fin L3 Municipal Fin
PPT
DEV1
PPTX
Grade 9 COMPUTER
Taller datos agrupados y no agrupados co1101 franyuri y vilmary
Impact of error
Example for histogram
3.3 graphs of exponential functions
8.1 exponential growth
17. two cointosstouchpad
PYTHON PROGRAMS
Nspire--iPadAppTutorial--Parallel and Perpendicular Lines
Part I (1.5 points) Write a C++ program that reads a line from the key...
Day 6 examples
Calculus of variations
COMR40S Govt Fin L3 Municipal Fin
DEV1
Grade 9 COMPUTER
Ad

Similar to C activities (20)

DOCX
C programs
DOCX
CS291(C Programming) assignment
PDF
PCA-2 Programming and Solving 2nd Sem.pdf
DOCX
PCA-2 Programming and Solving 2nd Sem.docx
DOCX
B.Com 1year Lab programs
DOCX
Programming questions
PDF
Common problems solving using c
PPS
C programming session 04
DOC
C-programs
PDF
Programming Practice Questions_C
DOC
C tech questions
PDF
C Programming Example
PDF
CP Handout#5
PDF
Basic C Programming Lab Practice
DOC
Programming qns
DOC
Course Breakup Plan- C
PDF
Harendra Singh,BCA Third Year
PPTX
Lecture_6-Loops.pptx
PDF
C programming
PDF
C programming (Part 1)
C programs
CS291(C Programming) assignment
PCA-2 Programming and Solving 2nd Sem.pdf
PCA-2 Programming and Solving 2nd Sem.docx
B.Com 1year Lab programs
Programming questions
Common problems solving using c
C programming session 04
C-programs
Programming Practice Questions_C
C tech questions
C Programming Example
CP Handout#5
Basic C Programming Lab Practice
Programming qns
Course Breakup Plan- C
Harendra Singh,BCA Third Year
Lecture_6-Loops.pptx
C programming
C programming (Part 1)
Ad

Recently uploaded (20)

PPTX
ICT_Strategy_Executive_rrrrrRoadmap.pptx
PPT
275505080-Excitation-System FRWEFAAG.ppt
PDF
Top Investment Opportunities in Nepal (1).pdf
PDF
How Foreign Investment in Nepal Makes a Difference.pdf
PDF
Collective Mining | Corporate Presentation - August 2025
PDF
Buy Verified Chime Accounts - Lori Donato's blo.pdf
PPTX
opinion fact prediction, value judgement
PDF
Step-by-Step Guide to Buy Aged Facebook Accounts in the USA
PPTX
International relations individual report
DOC
UND毕业证学历认证,阿德勒大学毕业证存档可查的
PDF
Pointers-in-Writing-a-Draft-of-a-Short-Literary-Piece-1.pdf
PDF
Synektik_presentation_Q3_2024 FY_EN final.pdf
PDF
Probe Gold Corporate Presentation August 2025 Final.pdf
PDF
GROUP 1 OM_CHAPTER 3_FORECASTING (1).pdf
PDF
Collective Mining | Corporate Presentation - August 2025
PDF
North Arrow Corporate and Kraaipan Gold Project Update
PDF
Deutsche EuroShop | Company Presentation | 08/25
PDF
The-Importance-of-Mutual-Funds-in-Your-Financial-Life (1).pdf
PPTX
network revitalization at xime alumini networking
PPTX
ICT_Strategy_SMB_vfvvfvfvfvfvfuLean.pptx
ICT_Strategy_Executive_rrrrrRoadmap.pptx
275505080-Excitation-System FRWEFAAG.ppt
Top Investment Opportunities in Nepal (1).pdf
How Foreign Investment in Nepal Makes a Difference.pdf
Collective Mining | Corporate Presentation - August 2025
Buy Verified Chime Accounts - Lori Donato's blo.pdf
opinion fact prediction, value judgement
Step-by-Step Guide to Buy Aged Facebook Accounts in the USA
International relations individual report
UND毕业证学历认证,阿德勒大学毕业证存档可查的
Pointers-in-Writing-a-Draft-of-a-Short-Literary-Piece-1.pdf
Synektik_presentation_Q3_2024 FY_EN final.pdf
Probe Gold Corporate Presentation August 2025 Final.pdf
GROUP 1 OM_CHAPTER 3_FORECASTING (1).pdf
Collective Mining | Corporate Presentation - August 2025
North Arrow Corporate and Kraaipan Gold Project Update
Deutsche EuroShop | Company Presentation | 08/25
The-Importance-of-Mutual-Funds-in-Your-Financial-Life (1).pdf
network revitalization at xime alumini networking
ICT_Strategy_SMB_vfvvfvfvfvfvfuLean.pptx

C activities

  • 1. C Programming & Data Structure Activities
  • 2. 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
  • 3. 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’.