0
how to input the value of v
include <stdio.h> int main() { int v = 42135; printf("%d", ); return 0; }
3 Réponses
+ 2
#
include <stdio.h>
int main() {
int v = 42135;
printf("%d",
v
);
return 0;
}
+ 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;
}