Message from C, C++ talks

July 2019

— Alright

— Am I allowed to ask questions here ,am a c++ begginer

— Nice 👍
Go ahead.

— Write a program in wch you wll declare 2 arrays, 1 which will take 8 numbers from input and the other will store the square of those numbers...

e.g. if the 1st array contains the numbers 2, 5, 4, 9 etc....the nxt array shld contain 4, 25, 16, 81 etc and be able to output to screen....[25]

extra credit wll be given if you use a function to find the square of the numbers.

Message permanent page

— 

So, go ahead with it too. It's pretty simple program. And what you are doing now is not asking questions. You just want someone to solve your problem. It's not a right approach. You have to at least start solving it and asking some certain questions about what exactly you can't do and what exactly you want to know. And before asking just use Google. If you doesn't follow what I said you will possibly never become a programmer.

— Thanks

— You are welcome :)
Just break every task on parts.
So, you need:

1. Declare 2 arrays
(learn what is arrays in C++ and how to work with them)

2. Get from user 8 numbers into first array
(learn loops, user input, <iostream> header)

3. Use function pow() from <cmath> header and raise your numbers to a power. Store result in the second array.

4. Output second array to screen.
(learn about std::cout, std::cin and basic I/O handling in C++)

Good luck to you.

Message permanent page

— Thanks a lot friend

— By the way someone tried to PM me. Just don't. Never. I'll block immediately.

— You are welcome 😉

— Hi friends

— Anyone who knows c programming to help me for growup skills

— We do. We'll help if you have questions, but no one will write a whole program for you

— Thanks bro

— Whenever I open this group, all the mods and admin are like " dO iT oN yOuR oWn, bLa bLa shIFty FuCk bLa bLa"

Message permanent page