0% found this document useful (0 votes)
21 views

Compilation IN Midterm Activity: Technological Institute of The Philippines

This document contains 12 programming activities submitted by Sophia Marie L. Siñel to Prof. Alfio Regla. Each activity contains a short program and sample output. The programs demonstrate basic C programming concepts such as data types, arithmetic operators, relational operators, logical operators, assignment operators, incrementing/decrementing operators, and if/else conditional statements.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Compilation IN Midterm Activity: Technological Institute of The Philippines

This document contains 12 programming activities submitted by Sophia Marie L. Siñel to Prof. Alfio Regla. Each activity contains a short program and sample output. The programs demonstrate basic C programming concepts such as data types, arithmetic operators, relational operators, logical operators, assignment operators, incrementing/decrementing operators, and if/else conditional statements.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 23

TECHNOLOGICAL INSTITUTE OF THE PHILIPPINES

Quiapo, Manila

CS100 A

COMPILATION
IN
MIDTERM ACTIVITY

SUBMITTED BY:
SOPHIA MARIE L. SIÑEL

SUBMITTED TO:
PROF. ALFIO REGLA
ACTIVITY 1

Program:

Sample Output:

THIS PROGRAM WILL DISPLAY THE MESSAGE THAT THE USER ENTERED IN THE PRINTF.
ACTIVITY 2

Program:

Sample Output:

THIS PROGRAM WILL GET THE SUM, DIFFERENCE, PRODUCT, QUOTIENT AND MODULUS OF THE TWO
INTEGERS TOGETHER.
ACTIVITY 3

Program:

Sample Output:

THIS PROGRAM WILL COMPUTE FOR THE AVERAGE OF THE THREE QUIZZES.
ACTIVITY 4

Program:

Sample Output:

THIS PROGRAM SHOWS THE BASIC DATA TYPES.


ACTIVITY 5

Program:

Sample Output:

THIS PROGRAM SHOWS WHAT IS THE OUTPUT IF YOU USE THE ARITHMETIC OPERATION.
ACTIVITY 5

Program:

Sample Output:

THIS PROGRAM ALSO SHOWS ANOTHER BASIC ARITHMETIC OPERATION IN FINDING THE VALUE OF C.
ACTIVITY 6

Program:

Sample Output:

THIS PROGRAM SHOWS THE RELATIONAL OPERATORS THAT USES IF ELSE OPERATION.
ACTIVITY 6

Program:

Sample Output:

THIS PROGRAM WILL SHOW WHAT IS THE RELATIONSHIP THEY SATISFY WHEN YOU ENTER TWO
INTEGERS.
ACTIVITY 6

Program:

Sample Output:

THE PROGRAM ALSO SHOWS ANOTHER BASIC IF ELSE OPERATION.


ACTIVITY 7

Program:

Sample Output:

THIS PROGRAM SHOWS THE BASIC ASSIGNMENT OPERATOR AND THE VALUE OF C.
ACTIVITY 7

Program:

Sample Output:

THIS PROGRAM SHOWS THE TOTAL USING THE BASIC ASSIGNMENT OPERATOR.
ACTIVITY 8

Program:

Sample Output:

THIS PROGRAM SHOWS THE CONDITION IN AND LOGICAL OPERATOR.


ACTIVITY 8

Program:

Sample Output:

THIS PROGRAM SHOWS THE CONDITION USING OR LOGICAL OPERATOR.


ACTIVITY 8

Program:

Sample Output:

THIS PROGRAM SHOWS THE CONDITION USING NOT LOGICAL OPERATOR.


ACTIVITY 8

Program:

Sample Output:

THIS PROGRAM SHOWS THE CONDITION WHEN USING BOTH THE AND, OR, AND NOT LOGICAL
OPERATORS.
ACTIVITY 9

Program:

Sample Output:

THIS PROGRAM SHOWS THE POSTINCREMENTING. WHEN IT IS POSTINCREMENTING, IF THE VALUE YOU
INPUT IN WHILE ( C++ < _) WILL REMAIN AT IT IS.
ACTIVITY 9

Program:

Sample Output:

THIS PROGRAM SHOWS THE PREINCREMENTING. WHEN IT IS PREINCREMENTING, THE VALUE WILL
INCREASE THE RESULT BY 1.
ACTIVITY 10

Program:

Sample Output:

THIS PROGRAM SHOWS THAT WHEN IT IS POSTDECREMENTING THE VALUE YOU INPUT WILL REMAIN.
ACTIVITY 10

Program:

Sample Output:

THIS PROGRAM SHOWS THE PREDECREMENTING, THAT WHEN THE VALUE YOU INPUT WILL DECREASE
THE RESULT BY 1.
ACTIVITY 11

Program:

Sample Output:

THIS PROGRAM SHOWS THE PREDECREMENT AND POSTDECREMENT.


ACTIVITY 11

Program:

Sample Output:

THIS PROGRAM SHOWS THE PREINCREMENT AND POSTINCREMENT.


ACTIVITY 12

Program: Sample Output:

THIS PROGRAM SHOWS THE VALUE OF C THROUGH DIFFERENT CONDITIONS SUCH AS PREINCREMENT
AND POSTINCREMENT, PREDECREMENT AND POSTDECREMENT, AND DIFFERENT OPERATORS SUCH AS
AND, OR AND NOT.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy