Submit Search
Upload
Introduction to Programming @ NTHUEEECamp 2015
•
0 likes
•
197 views
淳
淳佑 楊
Follow
Introduction to Programming NTHUEE English Camp 2015 by Chun-You Yang 2015/08/20
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 88
Download now
Download to read offline
Recommended
Soundslide
Soundslide
mediashafaqna
Soundslide
Soundslide
Visniauskas
Soundslide
Soundslide
Amanda
การใช้ Turbo C ชุดที่ 12 structure
การใช้ Turbo C ชุดที่ 12 structure
Know Mastikate
Soundslide
Soundslide
sniniv1
Release value description
Release value description
Tanveer Akram
[KOSSA] C++ Programming - 17th Study - STL #3
[KOSSA] C++ Programming - 17th Study - STL #3
Seok-joon Yun
Pointers
Pointers
ManjuShanmugam1593
Recommended
Soundslide
Soundslide
mediashafaqna
Soundslide
Soundslide
Visniauskas
Soundslide
Soundslide
Amanda
การใช้ Turbo C ชุดที่ 12 structure
การใช้ Turbo C ชุดที่ 12 structure
Know Mastikate
Soundslide
Soundslide
sniniv1
Release value description
Release value description
Tanveer Akram
[KOSSA] C++ Programming - 17th Study - STL #3
[KOSSA] C++ Programming - 17th Study - STL #3
Seok-joon Yun
Pointers
Pointers
ManjuShanmugam1593
JavaScript Gotchas
JavaScript Gotchas
Robert MacLean
Soundslide
Soundslide
tsang021
Tu1
Tu1
Ediga Venkigowd
Soundslide
Soundslide
touptoup
Javascript: Conceptos básicos
Javascript: Conceptos básicos
Belatrix Software
P U P School Sembarambakkam
P U P School Sembarambakkam
DFC2011
Vcs4
Vcs4
Malikireddy Bramhananda Reddy
Alu all shift register
Alu all shift register
Arun Chaudhary
2 3. standard io
2 3. standard io
웅식 전
Introduction to turbo c
Introduction to turbo c
Hanielle Cheng
Control flow in c
Control flow in c
thirumalaikumar3
Introduction to turbo c
Introduction to turbo c
Hanielle Cheng
LCM
LCM
Glenn Chan
Avl tree
Avl tree
loyola ICAM college of engineering and technology
#2
#2
Kaido Iwamoto
Cpd lecture im 207
Cpd lecture im 207
Syed Tanveer
Vcs5
Vcs5
Malikireddy Bramhananda Reddy
Bti1022 lab sheet 8
Bti1022 lab sheet 8
alish sha
Bti1022 lab sheet 8
Bti1022 lab sheet 8
alish sha
Chap7_b Control Statement Looping (3).pptx
Chap7_b Control Statement Looping (3).pptx
FakhriyArif
9.C Programming
9.C Programming
Export Promotion Bureau
C언어 스터디 강의자료 - 1차시
C언어 스터디 강의자료 - 1차시
Junha Jang
More Related Content
What's hot
JavaScript Gotchas
JavaScript Gotchas
Robert MacLean
Soundslide
Soundslide
tsang021
Tu1
Tu1
Ediga Venkigowd
Soundslide
Soundslide
touptoup
Javascript: Conceptos básicos
Javascript: Conceptos básicos
Belatrix Software
P U P School Sembarambakkam
P U P School Sembarambakkam
DFC2011
Vcs4
Vcs4
Malikireddy Bramhananda Reddy
Alu all shift register
Alu all shift register
Arun Chaudhary
2 3. standard io
2 3. standard io
웅식 전
Introduction to turbo c
Introduction to turbo c
Hanielle Cheng
Control flow in c
Control flow in c
thirumalaikumar3
Introduction to turbo c
Introduction to turbo c
Hanielle Cheng
LCM
LCM
Glenn Chan
Avl tree
Avl tree
loyola ICAM college of engineering and technology
What's hot
(14)
JavaScript Gotchas
JavaScript Gotchas
Soundslide
Soundslide
Tu1
Tu1
Soundslide
Soundslide
Javascript: Conceptos básicos
Javascript: Conceptos básicos
P U P School Sembarambakkam
P U P School Sembarambakkam
Vcs4
Vcs4
Alu all shift register
Alu all shift register
2 3. standard io
2 3. standard io
Introduction to turbo c
Introduction to turbo c
Control flow in c
Control flow in c
Introduction to turbo c
Introduction to turbo c
LCM
LCM
Avl tree
Avl tree
Similar to Introduction to Programming @ NTHUEEECamp 2015
#2
#2
Kaido Iwamoto
Cpd lecture im 207
Cpd lecture im 207
Syed Tanveer
Vcs5
Vcs5
Malikireddy Bramhananda Reddy
Bti1022 lab sheet 8
Bti1022 lab sheet 8
alish sha
Bti1022 lab sheet 8
Bti1022 lab sheet 8
alish sha
Chap7_b Control Statement Looping (3).pptx
Chap7_b Control Statement Looping (3).pptx
FakhriyArif
9.C Programming
9.C Programming
Export Promotion Bureau
C언어 스터디 강의자료 - 1차시
C언어 스터디 강의자료 - 1차시
Junha Jang
C questions
C questions
mohamed sikander
LET US C (5th EDITION) CHAPTER 2 ANSWERS
LET US C (5th EDITION) CHAPTER 2 ANSWERS
KavyaSharma65
Practical File of C Language
Practical File of C Language
RAJWANT KAUR
Simple C programs
Simple C programs
ab11cs001
Programming for Problem Solving
Programming for Problem Solving
Sreedhar Chowdam
5th Sem SS lab progs
5th Sem SS lab progs
Nagarjun Pakka Kannadiga
C language concept with code apna college.pdf
C language concept with code apna college.pdf
mhande899
Bai Giang 11
Bai Giang 11
nbb3i
C workshop day 6
C workshop day 6
Mayank Agrawal
ADA FILE
ADA FILE
Gaurav Singh
C lab programs
C lab programs
Dr. Prashant Vats
C lab programs
C lab programs
Dr. Prashant Vats
Similar to Introduction to Programming @ NTHUEEECamp 2015
(20)
#2
#2
Cpd lecture im 207
Cpd lecture im 207
Vcs5
Vcs5
Bti1022 lab sheet 8
Bti1022 lab sheet 8
Bti1022 lab sheet 8
Bti1022 lab sheet 8
Chap7_b Control Statement Looping (3).pptx
Chap7_b Control Statement Looping (3).pptx
9.C Programming
9.C Programming
C언어 스터디 강의자료 - 1차시
C언어 스터디 강의자료 - 1차시
C questions
C questions
LET US C (5th EDITION) CHAPTER 2 ANSWERS
LET US C (5th EDITION) CHAPTER 2 ANSWERS
Practical File of C Language
Practical File of C Language
Simple C programs
Simple C programs
Programming for Problem Solving
Programming for Problem Solving
5th Sem SS lab progs
5th Sem SS lab progs
C language concept with code apna college.pdf
C language concept with code apna college.pdf
Bai Giang 11
Bai Giang 11
C workshop day 6
C workshop day 6
ADA FILE
ADA FILE
C lab programs
C lab programs
C lab programs
C lab programs
Recently uploaded
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
ranjana rawat
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
RajkumarAkumalla
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls in Nagpur High Profile
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
Suhani Kapoor
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur High Profile
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
ranjana rawat
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
Call girls in Ahmedabad High profile
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
soniya singh
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
ranjana rawat
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
ranjana rawat
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
ranjana rawat
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
rknatarajan
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
slot gacor bisa pakai pulsa
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
rakeshbaidya232001
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
Suhani Kapoor
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
ranjana rawat
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
ssuser5c9d4b1
Recently uploaded
(20)
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
Introduction to Programming @ NTHUEEECamp 2015
1.
2.
3.
4.
5.
Statement; //Comment Statement; Statement; /*Comment Comment*/ Statement;
6.
7.
8.
𝑥
9.
int score; ;
10.
int score; ;
11.
int double char •
-3 • 0 • 300 • 3.14159 • -2.1 • 10000 • a • * • X
12.
int score; ;
13.
int score; ;
14.
“Score” ≠ “score” int char printf scanf if else……
15.
“Score” ≠ “score” int char printf scanf if else……
16.
“Score” ≠ “score” int char printf scanf if else……
17.
“Score” ≠ “score” int char printf scanf if else……
18.
?score Score score int ?score;
//Illegal int score; //Legal int no_score; //Legal int Score; //Legal
19.
int score; score =
100; int myScore = 60; myScore = score; = ;
20.
int score; score =
100; int myScore = 60; myScore = score; = ; score
21.
int score; score =
100; int myScore = 60; myScore = score; = ; score 100
22.
int score; score =
100; int myScore = 60; myScore = score; = ; score myScore 100 60
23.
int score; score =
100; int myScore = 60; myScore = score; = ; score myScore 100 100
24.
25.
+ - * / %
26.
a = 3+8; c
= 20%7; b = a-100; d = c*a; e = d/10; e = e+2; a b c d e
27.
a = 3+8; c
= 20%7; b = a-100; d = c*a; e = d/10; e = e+2; a b c d e 11
28.
a = 3+8; c
= 20%7; b = a-100; d = c*a; e = d/10; e = e+2; a b c d e 11 6
29.
a = 3+8; c
= 20%7; b = a-100; d = c*a; e = d/10; e = e+2; a b c d e 11 6-89
30.
a = 3+8; c
= 20%7; b = a-100; d = c*a; e = d/10; e = e+2; a b c d e 11 6-89 66
31.
a = 3+8; c
= 20%7; b = a-100; d = c*a; e = d/10; e = e+2; a b c d e 11 6-89 66 6
32.
a = 3+8; c
= 20%7; b = a-100; d = c*a; e = d/10; e = e+2; a b c d e 11 6-89 66 8
33.
++ --
34.
a = 5; a++; b
= 9; b--; a b
35.
a = 5; a++; b
= 9; b--; a b 5
36.
a = 5; a++; b
= 9; b--; a b 6
37.
a = 5; a++; b
= 9; b--; a b 6 9
38.
a = 5; a++; b
= 9; b--; a b 6 8
39.
> < >= <= == !=
40.
1<2; a=3; a>5; b=9; 18==b*2; TRUE FALSE TRUE
41.
(1>0) && (3>0) (1>0)
&& (3<0) TRUE FALSE
42.
(1>0) || (3>0) (1>0)
|| (3<0) (1<0) || (3<0) TRUE TRUE FALSE
43.
44.
printf(“NTHUEE Rocks!”); printf(“ ”);
45.
int level =
19; printf(“We are grade %d”, level); printf(“ ”, ...);
46.
%d %c %lf int year =
2015; int month = 8; int day = 20; printf(“Today is %d/%d/%d.”, year, month, day);
47.
n ” ’
48.
printf(“We are at
”NTHUEEECamp”, ”); printf(“we are having a lot of fun!n”); printf(“NTHUEE Rocks!”);
49.
int level; scanf(“%d”, &level); printf(“We
are grade %d”, level); scanf(“ ”, & );
50.
51.
#include <stdio.h> #include <stdlib.h> int
main(void){ int augend, addend, sum; scanf(“%d”, &augend); scanf(“%d”, &addend); sum = augend + addend; printf(“%d”, sum); return 0; }
52.
#include <stdio.h> #include <stdlib.h> int
main(void){ int augend, addend, sum; scanf(“%d”, &augend); scanf(“%d”, &addend); sum = augend + addend; printf(“%d”, sum); return 0; }
53.
54.
55.
56.
if(CONDITION){ STATEMENT_A; } else{ STATEMENT_B; }
57.
開始 CONDITION true STATEMENT_A false STATEMENT_B 結束
58.
開始 沒有下雨? true 出去打球 false 留在宿舍 耍宅打
LOL 結束
59.
int a; scanf(“%d”, &a); if(a>0){ printf(“%d
is bigger than 0.n”, a); } else{ printf(“%d is smaller or equal to 0.n”, a); }
60.
if(CONDITION_A){ STATEMENT_A; (Execute when CONDITION_A
is TRUE) } else if(CONDITION_B){ STATEMENT_B; (Execute when CONDITION_B is TRUE) } else{ STATEMENT_C; (Execute when all FALSE) }
61.
開始 CONDITION_A true STATEMENT_A false CONDITION_B false STATEMENT_C true
STATEMENT_B 結束
62.
開始 CONDITION_A true STATEMENT_A false CONDITION_B false STATEMENT_C true
STATEMENT_B 結束
63.
int a, b; scanf(“%d
%d”, &a, &b); if(a>b){ printf(“%d is bigger than %d.n”, a, b); } else if(a<b){ printf(“%d is smaller than %d.n”, a, b); } else{ printf(“%d is equal to %d.n”, a, b); }
64.
65.
#include <stdio.h> #include <stdlib.h> int
main(void){ int in; scanf(“%d”, &in); if((in%7)==0){ printf(“YES”); } else{ printf(“NO”); } return 0; }
66.
#include <stdio.h> #include <stdlib.h> int
main(void){ int in; scanf(“%d”, &in); if((in%7)==0){ printf(“YES”); } else{ printf(“NO”); } return 0; }
67.
68.
69.
for(INITIALIZATION; CONDITION; INCREMENT/DECREMENT){ STATEMENT; }
70.
71.
72.
int a, sum=0; for(a=1;
a<=10; a++){ sum = sum + a; printf(“%dn”, sum); } a sum 0
73.
int a, sum=0; for(a=1;
a<=10; a++){ sum = sum + a; printf(“%dn”, sum); } a sum 1 0
74.
int a, sum=0; for(a=1;
a<=10; a++){ sum = sum + a; printf(“%dn”, sum); } a sum 1 1
75.
int a, sum=0; for(a=1;
a<=10; a++){ sum = sum + a; printf(“%dn”, sum); } a sum 2 1
76.
int a, sum=0; for(a=1;
a<=10; a++){ sum = sum + a; printf(“%dn”, sum); } a sum 2 3
77.
int a, sum=0; for(a=1;
a>=1; a++){ sum = sum + a; printf(“%dn”, sum); }
78.
79.
#include <stdio.h> #include <stdlib.h> int
main(void){ int counter, units, tens, hundreds, sum; for(counter = 100; counter <=999; counter++){ hundreds = counter/100; tens = (counter/10)%10; units = counter%10; sum = hundreds*hundreds*hundreds + tens*tens*tens + units*units*units; if(sum == counter){ printf("%dn", counter); } } return 0; }
80.
#include <stdio.h> #include <stdlib.h> int
main(void){ int counter, units, tens, hundreds, sum; for(counter = 100; counter <=999; counter++){ hundreds = counter/100; tens = (counter/10)%10; units = counter%10; sum = hundreds*hundreds*hundreds + tens*tens*tens + units*units*units; if(sum == counter){ printf("%dn", counter); } } return 0; }
81.
int w, h; for(h=1;
h<=3; h++){ for(w=1; w<=20; w++){ printf(“*”); } printf(“n”); }
82.
int w, h; for(h=1;
h<=3; h++){ for(w=1; w<=20; w++){ printf(“*”); } printf(“n”); } ******************** ******************** ******************** h w 1 1~20
83.
int w, h; for(h=1;
h<=3; h++){ for(w=1; w<=20; w++){ printf(“*”); } printf(“n”); } ******************** ******************** ******************** h w 2 1~20
84.
int w, h; for(h=1;
h<=3; h++){ for(w=1; w<=20; w++){ printf(“*”); } printf(“n”); } ******************** ******************** ******************** h w 3 1~20
85.
86.
#include <stdio.h> #include <stdlib.h> int
main(void){ int a, b; for(a=1; a<=9; a=a+1){ for(b=1; b<=9; b=b+1){ printf(“%d*%d=%d ”, a, b, a*b); } printf(“n”); } return 0; }
87.
#include <stdio.h> #include <stdlib.h> int
main(void){ int a, b; for(a=1; a<=9; a=a+1){ for(b=1; b<=9; b=b+1){ printf(“%d*%d=%d ”, a, b, a*b); } printf(“n”); } return 0; }
Download now