Hello I'm the beginner of programming c. I'm studying c with the book and doing copy the book for basic learning. Some coding was running and showed the output but Some coding also was running tho didn't show the output. Can you help me? this is my first question of coding and I'm not really good at English so sorry for not including details about my question.
This is my code and this was running but didn't give output:
#include <stdio.h>
int main(void)
{
double num1, num2;
printf("print: ");
scanf("%lf %lf", &num1, &num2);
printf("plus: %f \n", num1+num2);
return 0;
}
This is not only running but also gave output:
#include <stdio.h>
int main(void)
{
printf("hello world\n");`
return 0;
}