sign up I login
 advanced
refer a friend - earn nickels!!

Ask & Discuss Questions with Community & Experts

Moderation Team
Ask iit jee aieee pet cbse icse state board community Discussion Response Post to: c++-plz help
Forum Index -> Course Material -> View Full Question like the article? email it to a friend.  
Author Message
nadeemoidu (1184)

Blazing goIITian

Olaaa!! Perrrfect answer. 200  [292 rates]

nadeemoidu's Avatar

total posts: 487    
offline Offline
I dont understand the above answer but i don't think it will work . here's a better one.


void func(int a[10][10],int row,int col)
{
int i,j,b[100],k=0;

for(i=0;i<row;i++)
for(j=0;j<col;j++)

   if(a[i][j]%3==0 ||a[i][j]%5==0)
      
        b[k++]= a[i][j];

cout<<"\n\nThe required array is  \n";
for(i=0;i<k;i++)
cout<<'\t'<<b[i];
}


 this reply: 5 points  (with Olaaa!! Perrrfect answer.   in 1 votes )   [?]
 
You have to be logged on to rate
  
 

Top Offers for goIITians
Correspondence Courses
Brilliant Tutorials
Narayana Institute
Aakash Institute
Classroom/Crash Courses
Narayana - Kota , Delhi , Others
Brilliant Tutorials - Class , Crash
Aakash Institute - Medical , Engg
Online Test Series
Brilliant Tutorials
Narayana Institute
Aakash Institute
Mahesh Tutorials
AMITY      Sri Chaitanya