I am doing a project for class and since I am not allowed to share/post it so i made an example of the part that I am stuck on. Idk what i am doing wrong here...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include <iostream>
#include <cmath>
usingnamespace std;
void test(int a, int n){
a=3;
n=4;
for(int i=1; i<=n; ++i){
cout<<i;
int ex=a*pow(10,i);
cout<<"i="<<i<<", pnt("<<a<<"*10^"<<i<<")="<<ex<<endl;
}
}
int main(){
cout<<test;
}