Created
June 23, 2022 15:04
-
-
Save DeclanGas/71d80e5adbf8f375d21368705f1f8418 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cs50.h> | |
#include <stdio.h> | |
int main(void) | |
{ | |
// declare a string animal and get user input | |
string animal = get_string("Enter a a type of animal: "); | |
// declare a celestial body and get input | |
string body = get_string("Enter a celesial body: "); | |
// declare a number and get input | |
float number = get_float("Enter a number with a decimal: "); | |
// write your printf statement here | |
printf("The %s jumped over the %s, %.1f times.\n", animal, body, number); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment