It was our first computer Lab (during Engg.) I met a guy (just coz of fame he aquired that day). We were supposed to write a 'C ' program to generate the calendar of a specific year. It wasen't an easy task when you have to take care of leap year, 28-29-30-31 days complicacies etc.. but this guy was the most relaxed one , although his program was multi fold larger than what I wrote.... During our conversation he told me a story::
Somewhere around 9th grade. The clock was ticking and it was 5 mins to submission. Final lab exam of computer science and had to write a program to generate first 10 prime number.
The urge to get in 90s was so strong that Agent A had to attempt this last question, and submit the exe in share.
Sol:
int main()
{
int i=0;
cout<< "Enter 1 for prime numbers and 2 to exit:";
cin>>i;
if(i == 1)
{
cout<<"2, 3, 5, 7, 11, 13, 17, 19, 23, 29";
}
else
{
cout<< exiting;
}
return 0;
}
Rest is History.
He repeated this History that day too...
This guy is most suited in "Indian" "IT industry"
ReplyDeletedawg... u cracked me up here
ReplyDeleteha ha ha... I remember when Rajinder Joshi applauded for you.. :)
ReplyDelete