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

Assignment No # 1: Institute of Industrial Electronics Engineering, (Pcsir) Karachi

Uploaded by

Rabeeah Zaki
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Assignment No # 1: Institute of Industrial Electronics Engineering, (Pcsir) Karachi

Uploaded by

Rabeeah Zaki
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

INSTITUTE OF INDUSTRIAL ELECTRONICS

ENGINEERING, (PCSIR) KARACHI

ASSIGNMENT NO # 1

SIMPLE CALCULATOR
IE238/*124: Introduction to Computer &
Programming
First Year Spring Semester

Submitted By

Rabeeah Zaki

20038

Submitted To

Engr. Sajid Hussain

Assistant Professor
#include <stdio.h>

#include <stdlib.h>

int main()

int a;

int b;

printf("Enter A=\n");

scanf("%d", & a);

printf("Enter B=\n");

scanf("%d", & b);

printf("a + b =%d\n", a+b);

printf("a - b =%d\n", a-b);

printf("a * b =%d\n", a*b);

printf("a / b =%d\n", a/b);

printf("a % b =%d\n", a%b);

return 0;

You might also like