Write a program that prints the numbers from 1 to 100. But for
multiples of three print "Fit" instead of the number and for
the multiples of five print "Bit". For numbers which are
multiples of both three and five print "FitBit".


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Programming Languages AllOther Interview Questions

can anyone please tell me the procedure for the NIC personal interview as i have been selected for the post of scientist/technical assistant B

2 Answers   NIC,


Hi friends :) This Company Aptitude Questions were much easy. i have attended the interview but was not selected in the HR round. they used to ask questions like puzzles, English, fill up the sentence. for example : they asked one question like suraj, kumar, santhosh, ranga and ashwin are professionals in different fields. suraj is a doctor. kumar is not a musician.ranga is working as engineer. ashwin is from goa. santhosh is from chennai. suraj and ranga are not from delhi. find out who is working in which field and where are they from? it was not the exact question. i answered that question with correct answer. just thorough with SQL queries. they are much interested in that. i cleared Technical round where they asked me to write a C code for checking, if the given word is palindrome or not. also they asked 2 puzzle question to solve in front of them. then the asked SQL query for referring two tables. then, they sent me for HR round. i got little nervous in that round. so, could not answer them properly. In Hr round, they may ask Technical Questions. i was asked only Technical Questions in HR round. they asked questions from SQL queries and my project. i could not answer for the questions perfectly. so, i was not selected. anyway, try to be thorough with these info and rock in your interview. Thanks :)

0 Answers   Hewitt,


can we retrieve only integer/String type columns from a table,if yes how?

0 Answers  


What is the language used for Artificial Intelligence?

1 Answers  


8.In DSP,Define Signal and System?and various type of signals.

0 Answers  






Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fit" instead of the number and for the multiples of five print "Bit". For numbers which are multiples of both three and five print "FitBit".

0 Answers  


What is the first message line that any language learning prints on the screen? and why?

0 Answers  


in a VB application, where the data will be stored after manipulation? what is the syntax for that?

0 Answers   TCS,


Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage

0 Answers   TCS,


3.Give the formula for determine the range of the data type?

1 Answers  


How will you prove that java swing is multithreaded?

0 Answers  


Why we use NEW operator when we create Object,While in C++ we donot ?

1 Answers  


Categories