This code defines a vector from 1 to 10, loops through each element, squares the number and converts it to a string, then displays "Square of" the original number, followed by "is" and the squared string.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
25 views1 page
Tutorial
This code defines a vector from 1 to 10, loops through each element, squares the number and converts it to a string, then displays "Square of" the original number, followed by "is" and the squared string.