#include<stdio.h>
void multi_table (int k ) {
int j=1;
while(j<=12)
{
printf("%d * %d =%d \n", k,j, k*j);
j++;
}
}
int main()
{
int i;
printf("enter the number you want to get it's multiplication table : ") ;
scanf("%i",&i) ;
multi_table(i) ;
return 0;
}
// TODO: Replace examples and use TDD by writing your own tests. The code provided here is just a how-to example. #include <criterion/criterion.h> // replace with the actual method being tested int foo(int,int); Test(the_multiply_function, should_pass_all_the_tests_provided) { cr_assert_eq(foo(1, 1), 1); }
- // TODO: Replace examples and use TDD by writing your own tests. The code provided here is just a how-to example.
- #include <criterion/criterion.h>
- // replace with the actual method being tested
- int foo(int,int);
- Test(the_multiply_function, should_pass_all_the_tests_provided) {
- cr_assert_eq(foo(1, 1), 1);
- }