Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hi to all , i have some H.W questions and i hope you can do it, Write a program

ID: 1099177 • Letter: H

Question

Hi to all ,


i have some H.W questions and i hope you can do it,





Write a program that gets a number from 1 to 10 with their squares and cubes as shown below: Write a program that gets a number from user and checks whether the number is a Palindrome or not (A Palindrome is a number whose reverse is the same number, like 732237) Write a simple program that checks a number to be PRIME or not. A prime number is a number that is only divided by 1 or itself. Write a program that finds the Fibonacci series of a number entered by the user, e.g. user enter 7 (upto seven term in series in series starting from zero), and then you need to print the Fibonacci series as Print the following structure using for loop Find the factorial of a number entered by the user using while loop Input an integer between 0 and 9, based on the integer values, create a switch statement that will display the integer in words, e.g. one, two, three etc. Print all tables from 1 to 10 up to range 10 using for loop Write a program to print Floyd's triangle. The Floyd's triangle is a structure like this, Print the following structure using loops

Explanation / Answer

1.:

#include <iostream>

using namespace std;


int main(void) {

for(int i=1;i<11;i++)

{

cout<<i<<" "<<i*i<<" "<<i*i*i<<endl;

}

return 0;

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote