Computer Science, asked by isaacwesonga90, 1 year ago

Write a pseudocode for a program that can be used to identify gender of a user and print result using if statement

Answers

Answered by tiger009
0

Pseudocode to identify gender of a user.

Explanation:

Following are the pseudocode in the C Programming Language

main()

{  

Character gender;

Write message "Enter your gender (M/m or F/f)";

Read in the variable gender;  

IF the variable gender  is equal to "M" and "m" Then,

      write "Male"

Else IF the variable gender is equal to "F" and "f" Then,

      write "Female"

Else

      write "Unspecified Gender.";

END

}

Learn More:

Write a pseudocode algorithm which asks the user to enter a password.if the user enters “NotAtHome” then print “welcome” : brainly.com/question/11623795

I need help writing this pseudocode : brainly.com/question/10752210

Similar questions