MahmudulMaruf

Code · Faith · Curiosity

Blog Post

Beecrwod: 1143 - Squared and Cubic

cpp �� 2023-08-16 12:32:44

cpp

Problem: 1143 - Squared and Cubic

Solution: 

#include 
using namespace std;
int main()
{
    int n, i ;
    cin>>n;
    for(i=1; i<=n; i++)
    {
            cout<<pow(i,1)<<" "<<pow(i,2)<<" "<<pow(i,3)<<endl;
        
    }
    return 0;
}

Post Visited: 419 times

Categories: cpp

0 Comments

    No comments yet. Be the first to comment!

Leave a comment

Captcha