RAVIANS COLLEGE OF SCIENCE PATTOKI: QUESTIN 2

QUESTIN 2

2. Write a program that generates the following table:

1990 135
1991 7290
1992 11300
1993 16200

ANSWER: CH2 SOLVED BY WAJID

#include
#include
#include

void main(void)
{
int i, i_arr[4]={135,7290,11300,16200};

do{
for(i=1990;i<1994;i++) cout< cout<<"\n !Press c to continue or any key to exit."< }while(getch()=='c');
}

No comments:

Post a Comment

Copyright © RAVIANS COLLEGE OF SCIENCE PATTOKI Urang-kurai