• Tidak ada hasil yang ditemukan

Assignmentbyharrertrtrtretfdsaf

N/A
N/A
haris zaffar

Academic year: 2023

Membagikan "Assignmentbyharrertrtrtretfdsaf"

Copied!
13
0
0

Teks penuh

(1)

Subject: Programming Fundamentals(PF) Submit to: Sir Nadeem

Submitted by: Haris Zafar

Task 1: Make a program to select from 5 drinks(Apple juice, Mango juice, Sprit, Water and Tea) and print an error message(“Error, choice was not valid, here is your money back”) if drink is not selected from above choices.

(2)
(3)
(4)

Task 2: Using arithmetic operator write a program that inputs two integers from a user and find if second is a divisor of first integer.

(5)
(6)
(7)

Task 3: Input two integers and find if they are equal, unequal, smaller or greater to each other.

(8)
(9)
(10)

Task 4(a):Write a program in C++ using loops to print even numbers from 1 to 100.

(11)
(12)

Task 4(b):Write a program in C++ using for loop to print below pattern:

(13)

Referensi

Dokumen terkait

University Hostel 3ra Floor, BAC Conference Room, BuISU lvlain Campus Bid Documents will be available to prospective bidders only upon payment of a non-refundable fee of One Thousand

Nomor : 011/SPm/URT/RSOH/IX/2023 Bandung, 18 September 2023 Lampiran : - Perihal : Permohonan Pengajuan Pembelian Thermometer Kepada : Yth., Direktur Oetomo Hospital Ditempat