SlideShare a Scribd company logo
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

What's hot

Taller datos agrupados y no agrupados co1101 franyuri y vilmary
Taller datos agrupados y no agrupados co1101 franyuri y vilmaryTaller datos agrupados y no agrupados co1101 franyuri y vilmary
Taller datos agrupados y no agrupados co1101 franyuri y vilmary
josemiguelmedinaquin
 
Impact of error
Impact of errorImpact of error
Impact of error
Anil Pokhrel
 
Example for histogram
Example for histogramExample for histogram
Example for histogram
Mayuri Joshi
 
3.3 graphs of exponential functions
3.3 graphs of  exponential functions3.3 graphs of  exponential functions
3.3 graphs of exponential functions
hisema01
 
8.1 exponential growth
8.1 exponential growth8.1 exponential growth
8.1 exponential growth
hisema01
 
17. two cointosstouchpad
17. two cointosstouchpad17. two cointosstouchpad
17. two cointosstouchpad
Media4math
 
PYTHON PROGRAMS
PYTHON PROGRAMSPYTHON PROGRAMS
PYTHON PROGRAMS
Alvino rock
 
Nspire--iPadAppTutorial--Parallel and Perpendicular Lines
Nspire--iPadAppTutorial--Parallel and Perpendicular LinesNspire--iPadAppTutorial--Parallel and Perpendicular Lines
Nspire--iPadAppTutorial--Parallel and Perpendicular Lines
Media4math
 
Part I (1.5 points) Write a C++ program that reads a line from the key...
Part I (1.5 points)        Write a C++ program that reads a line from the key...Part I (1.5 points)        Write a C++ program that reads a line from the key...
Part I (1.5 points) Write a C++ program that reads a line from the key...
hwbloom104
 
Day 6 examples
Day 6 examplesDay 6 examples
Day 6 examples
jchartiersjsd
 
Calculus of variations
Calculus of variationsCalculus of variations
Calculus of variations
effectivelearning
 
COMR40S Govt Fin L3 Municipal Fin
COMR40S Govt Fin L3 Municipal FinCOMR40S Govt Fin L3 Municipal Fin
COMR40S Govt Fin L3 Municipal Fin
DMCI
 
DEV1
DEV1DEV1
DEV1
jennam40s
 
Grade 9 COMPUTER
Grade 9 COMPUTERGrade 9 COMPUTER
Grade 9 COMPUTER
Joel Linquico
 

What's hot (14)

Taller datos agrupados y no agrupados co1101 franyuri y vilmary
Taller datos agrupados y no agrupados co1101 franyuri y vilmaryTaller datos agrupados y no agrupados co1101 franyuri y vilmary
Taller datos agrupados y no agrupados co1101 franyuri y vilmary
 
Impact of error
Impact of errorImpact of error
Impact of error
 
Example for histogram
Example for histogramExample for histogram
Example for histogram
 
3.3 graphs of exponential functions
3.3 graphs of  exponential functions3.3 graphs of  exponential functions
3.3 graphs of exponential functions
 
8.1 exponential growth
8.1 exponential growth8.1 exponential growth
8.1 exponential growth
 
17. two cointosstouchpad
17. two cointosstouchpad17. two cointosstouchpad
17. two cointosstouchpad
 
PYTHON PROGRAMS
PYTHON PROGRAMSPYTHON PROGRAMS
PYTHON PROGRAMS
 
Nspire--iPadAppTutorial--Parallel and Perpendicular Lines
Nspire--iPadAppTutorial--Parallel and Perpendicular LinesNspire--iPadAppTutorial--Parallel and Perpendicular Lines
Nspire--iPadAppTutorial--Parallel and Perpendicular Lines
 
Part I (1.5 points) Write a C++ program that reads a line from the key...
Part I (1.5 points)        Write a C++ program that reads a line from the key...Part I (1.5 points)        Write a C++ program that reads a line from the key...
Part I (1.5 points) Write a C++ program that reads a line from the key...
 
Day 6 examples
Day 6 examplesDay 6 examples
Day 6 examples
 
Calculus of variations
Calculus of variationsCalculus of variations
Calculus of variations
 
COMR40S Govt Fin L3 Municipal Fin
COMR40S Govt Fin L3 Municipal FinCOMR40S Govt Fin L3 Municipal Fin
COMR40S Govt Fin L3 Municipal Fin
 
DEV1
DEV1DEV1
DEV1
 
Grade 9 COMPUTER
Grade 9 COMPUTERGrade 9 COMPUTER
Grade 9 COMPUTER
 

Similar to C activities

C_Lab Manual_Part A.docx
C_Lab Manual_Part A.docxC_Lab Manual_Part A.docx
C_Lab Manual_Part A.docx
Pandiya Rajan
 
Programming qns
Programming qnsProgramming qns
Programming qns
Dr.Subha Krishna
 
C presentation book
C presentation bookC presentation book
C presentation book
krunal1210
 
Introduction
IntroductionIntroduction
Introduction
Komal Pardeshi
 
All C ppt.ppt
All C ppt.pptAll C ppt.ppt
All C ppt.ppt
JeelBhanderi4
 
C programming tutorial
C programming tutorialC programming tutorial
C programming tutorial
Mohit Saini
 
Using the Ceasar Cipher encryption algorithm, you take each characte.pdf
Using the Ceasar Cipher encryption algorithm, you take each characte.pdfUsing the Ceasar Cipher encryption algorithm, you take each characte.pdf
Using the Ceasar Cipher encryption algorithm, you take each characte.pdf
amirthagiftsmadurai
 
Constants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya JyothiConstants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya Jyothi
SowmyaJyothi3
 
5 ARRAYS AND STRINGSjiuojhiooioiiouioi.pptx
5 ARRAYS AND STRINGSjiuojhiooioiiouioi.pptx5 ARRAYS AND STRINGSjiuojhiooioiiouioi.pptx
5 ARRAYS AND STRINGSjiuojhiooioiiouioi.pptx
teddiyfentaw
 
CBSE Class 12 Computer practical Python Programs and MYSQL
CBSE Class 12 Computer practical Python Programs and MYSQL CBSE Class 12 Computer practical Python Programs and MYSQL
CBSE Class 12 Computer practical Python Programs and MYSQL
Rishabh-Rawat
 
Data Types and Variables In C Programming
Data Types and Variables In C ProgrammingData Types and Variables In C Programming
Data Types and Variables In C Programming
Kamal Acharya
 
Exposure Interval Initial Risk Assessment (with exist.docx
Exposure Interval    Initial Risk Assessment (with exist.docxExposure Interval    Initial Risk Assessment (with exist.docx
Exposure Interval Initial Risk Assessment (with exist.docx
ssuser454af01
 
gdscpython.pdf
gdscpython.pdfgdscpython.pdf
gdscpython.pdf
workvishalkumarmahat
 
ECO 520 Case Study One Production and Cost Guidelines and Rubric.docx
ECO 520 Case Study One Production and Cost Guidelines and Rubric.docxECO 520 Case Study One Production and Cost Guidelines and Rubric.docx
ECO 520 Case Study One Production and Cost Guidelines and Rubric.docx
jack60216
 
ECO 520 Case Study One Production and Cost Guidelines and Rubri.docx
ECO 520 Case Study One Production and Cost Guidelines and Rubri.docxECO 520 Case Study One Production and Cost Guidelines and Rubri.docx
ECO 520 Case Study One Production and Cost Guidelines and Rubri.docx
jack60216
 
Lab6: I/O and Arrays
Lab6: I/O and ArraysLab6: I/O and Arrays
Lab6: I/O and Arrays
enidcruz
 
best notes in c language
best notes in c languagebest notes in c language
best notes in c language
India
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
Aniket Patne
 
CS291(C Programming) assignment
CS291(C Programming) assignmentCS291(C Programming) assignment
CS291(C Programming) assignment
Kuntal Bhowmick
 
Basic of the C language
Basic of the C languageBasic of the C language
Basic of the C language
Sachin Verma
 

Similar to C activities (20)

C_Lab Manual_Part A.docx
C_Lab Manual_Part A.docxC_Lab Manual_Part A.docx
C_Lab Manual_Part A.docx
 
Programming qns
Programming qnsProgramming qns
Programming qns
 
C presentation book
C presentation bookC presentation book
C presentation book
 
Introduction
IntroductionIntroduction
Introduction
 
All C ppt.ppt
All C ppt.pptAll C ppt.ppt
All C ppt.ppt
 
C programming tutorial
C programming tutorialC programming tutorial
C programming tutorial
 
Using the Ceasar Cipher encryption algorithm, you take each characte.pdf
Using the Ceasar Cipher encryption algorithm, you take each characte.pdfUsing the Ceasar Cipher encryption algorithm, you take each characte.pdf
Using the Ceasar Cipher encryption algorithm, you take each characte.pdf
 
Constants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya JyothiConstants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya Jyothi
 
5 ARRAYS AND STRINGSjiuojhiooioiiouioi.pptx
5 ARRAYS AND STRINGSjiuojhiooioiiouioi.pptx5 ARRAYS AND STRINGSjiuojhiooioiiouioi.pptx
5 ARRAYS AND STRINGSjiuojhiooioiiouioi.pptx
 
CBSE Class 12 Computer practical Python Programs and MYSQL
CBSE Class 12 Computer practical Python Programs and MYSQL CBSE Class 12 Computer practical Python Programs and MYSQL
CBSE Class 12 Computer practical Python Programs and MYSQL
 
Data Types and Variables In C Programming
Data Types and Variables In C ProgrammingData Types and Variables In C Programming
Data Types and Variables In C Programming
 
Exposure Interval Initial Risk Assessment (with exist.docx
Exposure Interval    Initial Risk Assessment (with exist.docxExposure Interval    Initial Risk Assessment (with exist.docx
Exposure Interval Initial Risk Assessment (with exist.docx
 
gdscpython.pdf
gdscpython.pdfgdscpython.pdf
gdscpython.pdf
 
ECO 520 Case Study One Production and Cost Guidelines and Rubric.docx
ECO 520 Case Study One Production and Cost Guidelines and Rubric.docxECO 520 Case Study One Production and Cost Guidelines and Rubric.docx
ECO 520 Case Study One Production and Cost Guidelines and Rubric.docx
 
ECO 520 Case Study One Production and Cost Guidelines and Rubri.docx
ECO 520 Case Study One Production and Cost Guidelines and Rubri.docxECO 520 Case Study One Production and Cost Guidelines and Rubri.docx
ECO 520 Case Study One Production and Cost Guidelines and Rubri.docx
 
Lab6: I/O and Arrays
Lab6: I/O and ArraysLab6: I/O and Arrays
Lab6: I/O and Arrays
 
best notes in c language
best notes in c languagebest notes in c language
best notes in c language
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
 
CS291(C Programming) assignment
CS291(C Programming) assignmentCS291(C Programming) assignment
CS291(C Programming) assignment
 
Basic of the C language
Basic of the C languageBasic of the C language
Basic of the C language
 

Recently uploaded

Mandalay Resouces June 2024 Investor Relations PPT
Mandalay Resouces June 2024 Investor Relations PPTMandalay Resouces June 2024 Investor Relations PPT
Mandalay Resouces June 2024 Investor Relations PPT
MandalayResources
 
Cleades robinson:The Diplomat is Blue
Cleades robinson:The Diplomat is BlueCleades robinson:The Diplomat is Blue
Cleades robinson:The Diplomat is Blue
Cleades Robinson
 
Cyberagent_For New Investors_EN_240424.pdf
Cyberagent_For New Investors_EN_240424.pdfCyberagent_For New Investors_EN_240424.pdf
Cyberagent_For New Investors_EN_240424.pdf
CyberAgent, Inc.
 
MUTUAL FUNDS (ICICI Prudential Mutual Fund) BY JAMES RODRIGUES
MUTUAL FUNDS (ICICI Prudential Mutual Fund) BY JAMES RODRIGUESMUTUAL FUNDS (ICICI Prudential Mutual Fund) BY JAMES RODRIGUES
MUTUAL FUNDS (ICICI Prudential Mutual Fund) BY JAMES RODRIGUES
WilliamRodrigues148
 
Osisko Development - Investor Presentation - June 24
Osisko Development - Investor Presentation - June 24Osisko Development - Investor Presentation - June 24
Osisko Development - Investor Presentation - June 24
Philip Rabenok
 
ppt-namibia-worldeconomy-standardbank.ppt
ppt-namibia-worldeconomy-standardbank.pptppt-namibia-worldeconomy-standardbank.ppt
ppt-namibia-worldeconomy-standardbank.ppt
TestOrg1
 
Corporate Presentation Probe June 2024.pdf
Corporate Presentation Probe June 2024.pdfCorporate Presentation Probe June 2024.pdf
Corporate Presentation Probe June 2024.pdf
Probe Gold
 
2024-deutsche-bank-global-consumer-conference.pdf
2024-deutsche-bank-global-consumer-conference.pdf2024-deutsche-bank-global-consumer-conference.pdf
2024-deutsche-bank-global-consumer-conference.pdf
Sysco_Investors
 
Collective Mining | Corporate Presentation - June 2024
Collective Mining | Corporate Presentation - June 2024Collective Mining | Corporate Presentation - June 2024
Collective Mining | Corporate Presentation - June 2024
CollectiveMining1
 
一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
ybout
 
Understanding-the-E-Way-Bill-A-Digital-Transformation-in-Logistics.pptx
Understanding-the-E-Way-Bill-A-Digital-Transformation-in-Logistics.pptxUnderstanding-the-E-Way-Bill-A-Digital-Transformation-in-Logistics.pptx
Understanding-the-E-Way-Bill-A-Digital-Transformation-in-Logistics.pptx
cosmo-soil
 
快速办理(CUBoulder毕业证书)科罗拉多大学博尔德分校毕业证录取通知书一模一样
快速办理(CUBoulder毕业证书)科罗拉多大学博尔德分校毕业证录取通知书一模一样快速办理(CUBoulder毕业证书)科罗拉多大学博尔德分校毕业证录取通知书一模一样
快速办理(CUBoulder毕业证书)科罗拉多大学博尔德分校毕业证录取通知书一模一样
f3wjr2q2
 

Recently uploaded (12)

Mandalay Resouces June 2024 Investor Relations PPT
Mandalay Resouces June 2024 Investor Relations PPTMandalay Resouces June 2024 Investor Relations PPT
Mandalay Resouces June 2024 Investor Relations PPT
 
Cleades robinson:The Diplomat is Blue
Cleades robinson:The Diplomat is BlueCleades robinson:The Diplomat is Blue
Cleades robinson:The Diplomat is Blue
 
Cyberagent_For New Investors_EN_240424.pdf
Cyberagent_For New Investors_EN_240424.pdfCyberagent_For New Investors_EN_240424.pdf
Cyberagent_For New Investors_EN_240424.pdf
 
MUTUAL FUNDS (ICICI Prudential Mutual Fund) BY JAMES RODRIGUES
MUTUAL FUNDS (ICICI Prudential Mutual Fund) BY JAMES RODRIGUESMUTUAL FUNDS (ICICI Prudential Mutual Fund) BY JAMES RODRIGUES
MUTUAL FUNDS (ICICI Prudential Mutual Fund) BY JAMES RODRIGUES
 
Osisko Development - Investor Presentation - June 24
Osisko Development - Investor Presentation - June 24Osisko Development - Investor Presentation - June 24
Osisko Development - Investor Presentation - June 24
 
ppt-namibia-worldeconomy-standardbank.ppt
ppt-namibia-worldeconomy-standardbank.pptppt-namibia-worldeconomy-standardbank.ppt
ppt-namibia-worldeconomy-standardbank.ppt
 
Corporate Presentation Probe June 2024.pdf
Corporate Presentation Probe June 2024.pdfCorporate Presentation Probe June 2024.pdf
Corporate Presentation Probe June 2024.pdf
 
2024-deutsche-bank-global-consumer-conference.pdf
2024-deutsche-bank-global-consumer-conference.pdf2024-deutsche-bank-global-consumer-conference.pdf
2024-deutsche-bank-global-consumer-conference.pdf
 
Collective Mining | Corporate Presentation - June 2024
Collective Mining | Corporate Presentation - June 2024Collective Mining | Corporate Presentation - June 2024
Collective Mining | Corporate Presentation - June 2024
 
一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
 
Understanding-the-E-Way-Bill-A-Digital-Transformation-in-Logistics.pptx
Understanding-the-E-Way-Bill-A-Digital-Transformation-in-Logistics.pptxUnderstanding-the-E-Way-Bill-A-Digital-Transformation-in-Logistics.pptx
Understanding-the-E-Way-Bill-A-Digital-Transformation-in-Logistics.pptx
 
快速办理(CUBoulder毕业证书)科罗拉多大学博尔德分校毕业证录取通知书一模一样
快速办理(CUBoulder毕业证书)科罗拉多大学博尔德分校毕业证录取通知书一模一样快速办理(CUBoulder毕业证书)科罗拉多大学博尔德分校毕业证录取通知书一模一样
快速办理(CUBoulder毕业证书)科罗拉多大学博尔德分校毕业证录取通知书一模一样
 

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