generate functionTue, 27 Jun 2023

create a program who play a song when you select

#include <stdio.h> int main() { int age = 21; double height = 1.80; char response; printf("what is your age?\n"); scanf("%d", &age); printf("how tall are you?\n"); scanf("%lf", &height); printf("do you like me?\n"); scanf("%s", &response); printf("you are %d years old and your height is %lf.\n", age, height); if(response == 'y') { printf("thank you!\n"); } else { printf("ok, bye!\n"); } return 0; }

Questions about programming?Chat with your personal AI assistant