MENU
Question -

Write a user-defined function DispNTen (int L[] [4], int R, int C) in C++ to find the display all the numbers, which are not divisible by 10. For example if the content of array is :

20 17 30
12 19 10
The output should be
17 12 19



Answer -

void DispNTen (int L[] [4], int R,
 int C)
 {
 int i, j ;
 for (i = 0 ; i
 {for (j = 0; j
 {
 if (A[i] [j]%10= =0)
 cout <
 }
 }
 }

Comment(S)

Show all Coment

Leave a Comment

×