j

Tuesday, 3 November 2015

Write a program that take total distance in km form user and display him to how many liter fuel in which he complete his distance



#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int km,pet;
printf("Enter total kilometer which you want to travel ::");
scanf("%d",km);
pet=km/12;
printf("You should must have %d liter petrol.",pet);
getch();
}

Subscribe to this Blog via Email :