Introduction to Computers Programming (ICP-132)

Main Page

Assignment 01
Assignment 02
Assignment 03
Assignment 04
Assignment 05
Assignment 06
Assignment 07
Assignment 08
Assignment 09
Assignment 10
Assignment 11
Assignment 12
Assignment 13

Coding rules (pdf)
Sample code
Prob: Set 1
Prob: Set 2
Compiler options
Submission

Forum
Teaching Assistants
Links
Trivia

Assignment 1

Write a program that accepts three integers x, y, and z, and prints the value of (x+y), (x-y), (2x+3), (y-2/z), (y/z) and (x/(y+z)). The program should warn if the denominator for division is zero and should exit the program with informative error code to the operating system.


PS: The program should be coded in both C and C++.