Answer to Question #156881 in C++ for Riola Sadtoi

Question #156881

Question Link: https://ibb.co/bgzhbBW


1
Expert's answer
2021-01-20T10:28:12-0500
#include <iostream>

int main()
{
    for(int t = -9; t <= 9; t+=3)
    {
        int yt = t >= 0 ? -3 * t * t + 5
                        :  3 * t * t + 5;
        
        std::cout << t << "\t" << yt << "\n";
    }

    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog