php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS201 Introduction to Programming Fall 2010 second assignment solution
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#2
#include<iostream.h>
#include<stdio.h>
#include<conio.h>

int main()
{

clrscr();
int IndexA[10] = {0,0,0,0,0,0,0,0,0,0};
int IndexB[10] = {0,0,0,0,0,0,0,0,0,0};

cout<<"You Are Requested To Enter Values in Arrays "<<endl;
cout<<"you should enter values between 1 & 20 "<<endl;
cout<<"Enter Value In First Array"<<endl;
for(int x=0 ; x<10 ; x++)
{
cout<<"Enter Value at - "<<x+1<<" - location - ";
cin>>IndexA[x];
if(IndexA[x] < 0 )
{
cout<<"please eneter the value between 1 & 20";
cin>>IndexA[x];
}
else if(IndexA[x] >20)
{
cout<<"please eneter the value between 1 & 20";
cin>>IndexA[x];
}
}
clrscr();
cout<<"enter Value In Second Array"<<endl;
for(x=0 ; x<10 ; x++)
{
cout<<"Enter Value at - "<<x<<" - location - ";
cin>>IndexB[x];
if(IndexB[x] < 0 )
{
cout<<"please eneter the value between 1 & 20";
cin>>IndexB[x];
}
else if(IndexB[x] >20)
{
cout<<"please eneter the value between 1 & 20";
cin>>IndexB[x];
}
}
clrscr();
cout<<"You have enter these values in Array"<<endl;
for(x =0 ; x<10 ; x++)
{
cout<<"Ist Array at - "<<x+1<<" - " <<IndexA[x]<<"| 2nd Array - " <<IndexB[x]<<endl;
}

//int IndexC[10] = {0,0,0,0,0,0,0,0,0,0};
for(x =0 ; x <10 ;x++)
{
if(IndexA[x] == IndexB[x])
{
cout<<"Values Are Same At Index - "<<x+1<<"Where Value Is = "<<IndexA[x]<<endl;
}
}

return 0;
}



Solovd By Aatish...
Reply


Messages In This Thread
CS201 Introduction to Programming Fall 2010 second assignment solution - by mc100403390 - 11-15-2010, 11:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  CS301 Assignment # 4 Due Date: 02-Feb-2016 Vuhelper 0 2,373 02-03-2016, 05:38 PM
Last Post: Vuhelper
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,961 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 1,992 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,233 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,300 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 2,027 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS711 Software Design Assignment No 01 Solution Due Date Feb 12, 2016 Vuhelper 0 1,718 01-20-2016, 06:24 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,856 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,754 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,856 01-20-2016, 06:19 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support