#include <iostream>
#include <cmath>
#include <windows.h>
using namespace std;
const double e = -1.6 * pow(10, -19);
int main()
{
SetConsoleCP(65001);
SetConsoleOutputCP(65001);
double q;
float N;
cout << "Введите q ( * 10^-13 Кл): ";
cin >> q;
q *= pow(10, -13);
N = (q / e) / pow(10, 6);
cout << N << (" * 10^6");
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
#include <cmath>
#include <windows.h>
using namespace std;
const double e = -1.6 * pow(10, -19);
int main()
{
SetConsoleCP(65001);
SetConsoleOutputCP(65001);
double q;
float N;
cout << "Введите q ( * 10^-13 Кл): ";
cin >> q;
q *= pow(10, -13);
N = (q / e) / pow(10, 6);
cout << N << (" * 10^6");
return 0;
}