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
raulrag009 (1205)

Blazing goIITian

Olaaa!! Perrrfect answer. 203  [298 rates]

raulrag009's Avatar

total posts: 646    
offline Offline
Void func(a[20][20],row,col)
{
int i,j,b[100],l;
cout<<"enter the no of rows and coloumns\n";
cin>>row>>col;
cout<<"enter the elements of the 2D array\n";
for(i=0;i<row;i++)
{
for(j=0;j<col;j++)
{ cin>>a[i][j];
}
}
for(i=0;i<row;i++)
{
for(j=0;j<col;j++)
{   if(a[i][j]%3==0 ||a[i][j]%5==0)
{
for(l=0;l<row+col;i++)
{ a[i][j]=b[l];
}}
else cout<<"thank you\n";
}}
 
for(l=0;l<row+col;l++)
{
cout<<"the elements are\n";
cout<<b[l];
}
}
 
 
 
 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