how to print electricity bill according to following charges
first 100 units -1rs per unit
for next 200 units-1.50 rs per unit
without using conditions


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

Post New Answer

More C Interview Questions

write a program to display all prime numbers

0 Answers  


plz answer.... write a program that reads line (using getline) e.g."345", converts each line to an integer using "atoi" and computes the average of all the numbers read. also compute the standard deviation.

1 Answers  


What is the default value of local and global variables in c?

0 Answers  


#include <stdio.h> void main() { int i=-1,j=1,k,l; k=!i&&j; l=!i||j; printf ("%d%d",k,l) ; }

3 Answers   SRG,


What is pre-emptive data structure and explain it with example?

0 Answers  






Write a program in c to print * * * * * *******

1 Answers  


What is the difference between NULL and NUL?

0 Answers   Aspire, Infogain,


Who had beaten up hooligan "CHAKULI" in his early college days?

1 Answers  


write a function that accepts an integer/char array and an search item.If the search item is there in the array return position of array and value else return -1.without using other array,without sorting,not to use more than one loop?

3 Answers   Mind Tree,


Tell us the difference between these two : #include"stdio.h" #include<stdio.h> define in detial.

5 Answers  


what is default constructor?

2 Answers   HCL,


There are 8 billiard balls, and one of them is slightly heavier, but the only way to tell was by putting it on a weighing scale against another. What's the fewest number of times you'd have to use the scale to find the heavier ball?

5 Answers   Microsoft, TCS,


Categories