14 lines
183 B
C
14 lines
183 B
C
// Doubles a number
|
|
|
|
#include <cs50.h>
|
|
#include <stdio.h>
|
|
|
|
int main(void)
|
|
{
|
|
// Prompt user for x
|
|
int x = get_int("What's x? ");
|
|
|
|
// Double it
|
|
printf("%i\n", x * 2);
|
|
}
|