#include <stdio.h>
#include <stdlib.h>
void main ()
{
int i;
char character [256];
printf (“Enter a number: “);
scanf(“%s”, character);
i = atoi (character);
printf (“The value entered is %d. The double is %d.\n”,i,i*2);
}
Becoming a better Developer
#include <stdio.h>
#include <stdlib.h>
void main ()
{
int i;
char character [256];
printf (“Enter a number: “);
scanf(“%s”, character);
i = atoi (character);
printf (“The value entered is %d. The double is %d.\n”,i,i*2);
}