Skip to content

Instantly share code, notes, and snippets.

@DeclanGas
Created June 23, 2022 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DeclanGas/71d80e5adbf8f375d21368705f1f8418 to your computer and use it in GitHub Desktop.
Save DeclanGas/71d80e5adbf8f375d21368705f1f8418 to your computer and use it in GitHub Desktop.
#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