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

C Program for User Input Handling

The document outlines an algorithm for a program that collects user information, including name, age, height, and gender, using the 'scanf()' function. It specifies steps to read and write these variables using escape sequences and concludes with stopping the program. The document is part of a practical exercise, indicated by the page and practical number.

Uploaded by

Muhammad Yaseen
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)
7 views1 page

C Program for User Input Handling

The document outlines an algorithm for a program that collects user information, including name, age, height, and gender, using the 'scanf()' function. It specifies steps to read and write these variables using escape sequences and concludes with stopping the program. The document is part of a practical exercise, indicated by the page and practical number.

Uploaded by

Muhammad Yaseen
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

GR NO: 240 Name: Mahnoor Ali

Algorithm
Step # 01: Start the program
Step # 02: Declare variables name, age, height, and gender.
Step # 03: Read name (using escape sequence) using “scanf ()” function.
Step # 04: Read age (using escape sequence) using “scanf ()” function.
Step # 05: Read height (using escape sequence) using “scanf ()”
function.
Step # 06: Read gender (using escape sequence) using “scanf ()”
function.
Step # 07: Write name (using escape sequence) using “printf ()”
function.
Step # 08: Write age (using escape sequence) using “printf ()” function.
Step # 09: Write height (using escape sequence) using “printf ()”
function.
Step # 10: Stop the program.

Page NO: 12 Practicle NO: 03

You might also like