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