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.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
18 views
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.