My Assignmant Practical 01
My Assignmant Practical 01
ROLL NO:
SECTION: A3
SUBJECT: PROGRAMMING FUNDAMENTALS
SUBMITTED TO: ENGR. SOFIA HAJANO
1. For each of the following statement write down the flow chart symbol you will use.
A B C D E F
Flow chart
START
Area=1/2×base×height
PRINT AREA
END
Problem Statement 2
Write a program that asks the user to enter a four digit integer number and displays the average of all
the four digits of a number.
Sample output:
9+4+2+ 5
Input: Output:
4
number = 9425 = 5
average =
Problem statement:
Write a program that takes a four-digit number as input from user and
print its first digit.