Program 8

#include <stdio.h>
#include <conio.h>
void main () {
int x;
printf(“Units consumed?”);
if (x<=200)
printf(“\nBill = %d”, x*9);
else if (x<=300)
printf(“\nBill = %d”, x*12);
else if (x<=700) printf(“\nBill = %d”, x*16); else if (x>700)
printf(“\nBill = %d”, x*18);
printf(“Something wrong!”);

M.Bakhtiar Zuberi
I'm M.Bakhtiar Zuberi, the owner of and its network websites. I've been web-developing & graphics-designing for the past 7 years, since the age of 11. I like to work with PHP/HTML and Photoshop/Illustrator. Part-time developer of ZCL (crypto-currency) and ETC. I love to blog here and write for Tribune in my free time.

Leave a Comment

Kindly solve the following puzzle to prove that you\'re not a bot: