001-003-004
Variable Initialization: Student Info Card
Easy
Problem Description
variable Initialization: Student Info Card
In this problem, you will create a program that reads a student's name (string) and grade (integer) as input, then displays a student info card in the format "Student: [name]" and "Grade: [grade]" to standard output.
Learning Objective
Learn how to initialize variables at the time of declaration.
Problem
Create a program that displays student information.
Receive name and grade as input and display a student info card.
Input
Line 1: Name (string)
Line 2: Grade (integer)
Output
Student: [name]
Grade: [grade]
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
Sign Up