how to input the value of v | SoloLearn: Learn to code for FREE!

0

how to input the value of v

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

c

7/4/2020 12:53:49 PM

Brothers Gang

2 Answers

New Answer

+1

still its not working

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; }