Title | 4 - dsasd sadasd as fdgdf |
---|---|
Author | Darke Horse |
Course | Nutrition |
Institution | University of Management and Technology |
Pages | 25 |
File Size | 788.8 KB |
File Type | |
Total Downloads | 56 |
Total Views | 191 |
dsasd sadasd as fdgdf...
CSL-113: Computer Programming Lab Semester BS CS – 1A Name : Muhammad Zain Enroll no :(02-134182-037)
Task#1 Write a C++ Program that read a float (amount) and an int (num) input from user. Add both (amount and num) numbers and store them in two different int (a) and float (b) variables. Display the outputs of a and b variables. Also if outputs are greater than 16 print “value of a & b > 16” else print “value of a & b < 16”.
Source code #include using namespace std; int main() { float amount,add,a,b; int num; coutamount; coutnum; add=amount + num; a==add; b==add; Department of computer science CSL-113: Computer Programming Lab
Semester BSCS-1A Lab 04: Conditional Statements (if-else, Nested, switch statement
CSL-113: Computer Programming Lab Semester BS CS – 1A Name : Muhammad Zain Enroll no :(02-134182-037)
cout...