Discussions Q&R
problem with asterisk
1 Vote
1 RéponseWho wants Lua script?
3 Votes
2 Réponseshelp
1 Vote
4 Réponseshey guys, I've been trying to work out the formula 'v=I*r'. But whenever I run the program and input values for I and r, it doesn't give the right answer.
This is the code
#include <iostream>
using namespace std;
int main() {
int i,r;
int v = i*r;
cout<<"what is the value of i?\n";
cin>>i;
cout<<"what is the value of r?\n";
cin>>r;
cout<<"voltage ="<<v<<endl;
return 0;
}
p/s: I'm new to programming
1 Vote
8 RéponsesAI or web ?
1 Vote
1 Réponsei need help
1 Vote
3 RéponsesPlease help me
0 Vote
1 RéponseHello
-2 Votes
2 RéponsesAujourd'hui en vedette
What is a web browser intension?
1 Votes
Thread local : global vs local
0 Votes
Postgrrsql and python
0 Votes
Codding lern
0 Votes
Data Analysis Course
1 Votes
Is there LUA?
0 Votes
tabla empleados sql
0 Votes
Web vs python
0 Votes