Header Ads

Header ADS

Solution of URI 1197::Back to High School Physics

Before seeing the solution make sure that you have tried enough. Don’t copy the whole code, just find out the logic. If you feel any problemyou will inform me by comment.



#include <bits/stdc++.h>
using namespace std;

int main(){
    int t,v;
    long int d;

    while(cin>>t>>v){
        d = 0;
        d  = 2*v*t;
        cout<<d<<endl;
    }

    return 0;
}

No comments

Theme images by konradlew. Powered by Blogger.