245,090 views
4 votes
4 votes
HELP HELP HELP Help Helpl

HELP HELP HELP Help Helpl-example-1
User Omar Rehman
by
2.5k points

1 Answer

18 votes
18 votes

Answer:

#include <stdio.h>

int main(void) {

float number = 0;

printf("Enter a number: ");

scanf("%f", &number);

number *= 2;

printf("The number doubled is: %f\\", number);

return 0;

}

Step-by-step explanation:

Assuming you want a C program, see above.

User Pelanes
by
3.2k points