Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Exercise1 {
- public static string test(int num) {
- int i = 10, k = 1;
- int answer;
- string ans = "";
- do {
- answer = num * k;
- //cout << num << " x " << k << " = " <<answer<< endl;
- ans += (answer).ToString() + " ";
- k++;
- i--;
- } while (i > 0);
- return ans;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement