answersLogoWhite

0

#include<iostream>

#include<vector>

template<typename T> void print_table(std::vector<T> table)

{

for (auto i : table)

std::cout << i << std::endl;

}

int main()

{

std::vector<int> table = {1,5,9,3,5,2,9};

print_table (table);

}

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

How do you solve this program wap to print sum of a digit of an inputed number?

wap to print all the arnstrong no. between 100&amp;1000


WAP to print esquare 10 natural number?

yo yo as


WAP To print the squares of all even numbers from 1 to 20?

CLS PRINT "PROGRAM: Print squares of all even numbers from 1 to 20" PRINT PRINT "number", "squared" PRINT FOR number% = 1 TO 20 IF number% MOD 2 = 0 THEN PRINT number%, number% * number% END IF NEXT END


Wap to take a number from the user and print its square if the number is even otherwise incase of odd number print its cube?

#include&lt;iostream&gt; using namespace std; int main(void) { int a; int b; { cout &lt;&lt; "Please enter a number: "; cin &gt;&gt; a; b = a%2 == 0 ? a*a : a*a*a; cout &lt;&lt; "The result is: " &lt;&lt; b &lt;&lt; endl; } return 0; } - - - //Alternative #include&lt;iostream&gt; #include&lt;cmath&gt;


Can anybody do theseCan anybody do these WAP in qbasic to display 1 15913 999 2 1491625 100 3 50454035 0 4 1x2 plus 2x3 plus 3x4 plus 9x10 2 WAP to find the?

Research did not yield any reasonable solution to your question.


WAP to print even numbers upto 20 and find the total in Q-Basic?

cls total=0 for i=0 to 20 step -2 total = total+i print i ; next i print "total is " total end send by tripti


Wap to calculate reverse of a number without loops?

Main(include.h)


WAP to reverse the supplied number without using string manipulators in qbasic?

10. input number 20. let accumulator = 0 30. if number &gt; 0 then goto 80 40. let digit = number % 10 50. let accumulator = accumulator * 10 + digit 60. let number = number / 10 70. goto 30 80. print accumulator


WAP to print in c program in 0 10 010kzvcs?

#include &lt;stdio.h&gt; int main (void) { puts ("in 0 10 010kzvcs"); return 0; }


What is a wap code?

Samsung s5233 wap code


Wap in c plus plus to find out the string is palindrome or not in?

use the strrev() function on the given string and compare with original string.If both are equal they are palindromes else not.


How do i get wap on my phone?

To get wap on your mobile phone, simply get in touch with your service provider. The provider will give you instructions on how to get wap.