Professional Documents
Culture Documents
Explanation
Explanation
#include <stdio.h>
the program*/
int main(){
/*all C program must have a main() function with return type void
by the compiler*/
int num;
the screen*/
scanf("%d", &num);
for the num; hence, the address operator & is used before the
variable name*/
the screen, except for the value of num replaces the format
specifier %d*/
return 0;
/*0 is returned as it is the standard for the successful
/*the closing curly brace specifies the end of the main() function’s
statement is executed*/