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

North Campus: Assignment # 2

This document contains an assignment for a Programming Fundamentals course. It has 2 questions worth 2.5 marks each. Question 1 asks students to write a C++ program to input a number and find its reverse using a for loop. Question 2 asks students to write a C program to input a number and print it out in words using a for loop. Both questions are mapped to CLO-2, PLO-3 and C4 learning outcomes.

Uploaded by

Farrukh Abbasi
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)
24 views

North Campus: Assignment # 2

This document contains an assignment for a Programming Fundamentals course. It has 2 questions worth 2.5 marks each. Question 1 asks students to write a C++ program to input a number and find its reverse using a for loop. Question 2 asks students to write a C program to input a number and print it out in words using a for loop. Both questions are mapped to CLO-2, PLO-3 and C4 learning outcomes.

Uploaded by

Farrukh Abbasi
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/ 4

North Campus

Assignment # 2

Subject Programming Fundamentals Program BSCS


Faculty Shumail Zehra Due date
No. of Students 45 Maximum Marks 5
OBE Target: CLO-2, PLO-3 and C3 Section Code(s)

Q. No. 1 CLO-2, PLO-3 and C4 Marks 2 .5

Write a C++ program to input a number from user and find reverse of the given number using for
loop. How to find reverse of any number using loop in C program. Logic to find reverse of a
number in C programming.

Input Output

Input number: 12345 Reverse of 12345 = 54321


Q. No. 2 CLO-2, PLO-3 and C4 Marks 2 .5
Write a C program to input a number from user and print it into words using for loop. How to
display number in words using loop in C programming. Logic to print number in words in C
programming.

Example

Input Output

Input number: 1234 One Two Three Four

You might also like