0

how to input the value of v

include <stdio.h> int main() { int v = 42135; printf("%d", ); return 0; }

4th Jul 2020, 12:53 PM
Brothers Gang
Brothers Gang - avatar
3 Answers
+ 2
# include <stdio.h> int main() { int v = 42135; printf("%d", v ); return 0; }
15th Aug 2021, 4:42 PM
NARPAT AANJANA
NARPAT AANJANA - avatar
+ 1
still its not working
4th Jul 2020, 1:21 PM
Brothers Gang
Brothers Gang - avatar
0
Answer: printf("%d", v); ------------------------------ However! The code as shown below works on my system! ------------------------- #include <stdio.h> int main() { int v = 42135; printf("result = %d\n", v); return 0; } ----------------------- Maybe I do not understand what you mean with "input?" -----------------------Supplement: #include <stdio.h> int main() { //int v = 42135; comment int v; printf("Enter a number:\n"); //for me that is input! here you can enter the value desired scanf("%d", &v); //and that is output printf("that is the output of your input = %d\n", v); return 0; }
4th Jul 2020, 1:04 PM
yyy