Discussions Q&R
How develop games
0 Vote
3 RéponsesHello can you help me?
0 Vote
3 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éponsesShould i write on
0 Vote
1 RéponseWhye error???
0 Vote
1 RéponseAujourd'hui en vedette
Is there any free coding app?
1 Votes
Slicing in py
0 Votes
Notes app bug
1 Votes
Cube Roots
1 Votes
Association rule mining
1 Votes
BASIC
0 Votes
how to become a mentor
2 Votes
Guys I have question
0 Votes