0% found this document useful (0 votes)
6 views1 page

C++ Assignment: Number Manipulation

This document contains details about Assignment #2 for the North Campus BSCS Programming Fundamentals program. It includes two programming questions worth 2.5 marks each that involve using loops in C++ to reverse a user-input number and print a user-input number in words. Both questions map to CLO-2, PLO-3 and various competencies as part of the assignment.

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)
6 views1 page

C++ Assignment: Number Manipulation

This document contains details about Assignment #2 for the North Campus BSCS Programming Fundamentals program. It includes two programming questions worth 2.5 marks each that involve using loops in C++ to reverse a user-input number and print a user-input number in words. Both questions map to CLO-2, PLO-3 and various competencies as part of the assignment.

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

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