Data Type, Variable, Format Specifier, Input, Output, String - 33
Problem Set 1.1: Data Type, Variable (Declaration, Assignment, Initialization), Format Specifier, Output, Input, String [27]
Variable Declaration (Data Type (Primitive Data Type))
[1] Declare an integer variable.
[2] Declare a float variable.
[3] Declare a double variable.
[4] Declare a character variable.
Assignment (Assignment Operator)
[5] Assign an integer value to an integer variable.
[6] Assign a fraction value (single precision floating point number) to a float variable.
[7] Assign a fraction value (double precision floating point number) to a double variable.
[8] Assign a character value to a character variable.
Initialization (Assignment on Declaration)
[9] Initialize an integer variable.
[10] Initialize a float variable.
[11] Initialize a double variable.
[12] Initialize a character variable.
Output (Format Specifier) (After Assignment or, Initialization) (Garbage Value Demonstration)
[13] Print the value of an integer variable.
[14] Print the value of a float variable.
[15] Print the value of a double variable.
[16] Print the value of a character variable.
Input
[17] Input one integer number and print that number.
[18] Input one float number and print that number.
[19] Input one double number and print that number.
[20] Input one character and print that character.
Multiple Input (using scanf() function only once)
[21] Input two integer numbers and print those numbers.
[22] Input two float numbers and print those numbers.
[23] Input two double numbers and print those numbers.
[24] Input two characters and print those characters.
[25] Input one integer and one float/double number and print those numbers.
[26] Input one character and one integer/float/double number and print those values.
String
[27] Declare a String Variable (Repeated: Problem Set 8.2: String)
[28] Assign value to a String Variable (Repeated: Problem Set 8.2: String)
[29] Initialize a String Variable in all possible ways (Repeated: Problem Set 8.2: String)
[30] Print the value of a String Variable (Repeated: Problem Set 8.2: String)
[31] Input a character (Ex: the first character of your name) and display it on the screen (Repeated: Problem Set 8.2: String)
[32] Input one word (string) (Ex: your last name) and print that word (Repeated: Problem Set 8.2: String)
[33] Input one sentence (Ex: your full name) and print that sentence (Repeated: Problem Set 8.2: String)
Last updated