Dyskusje Q&A
How develop games
0 głosów
3 odpowiedziHello can you help me?
0 głosów
3 odpowiedzihey 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 Głos
8 odpowiedziShould i write on
0 głosów
1 OdpowiedźWhye error???
0 głosów
1 OdpowiedźNeed help
-1 Głos
1 OdpowiedźWhere ro progam a website
0 głosów
2 odpowiedziAda
0 głosów
1 OdpowiedźPopularne dzisiaj
Time up code for data revision
0 Votes
Best Python Calculator Code
1 Votes
Animation
2 Votes
New code
1 Votes
Clean Code
2 Votes
PHP
1 Votes