j

Monday, 2 November 2015

Write a program, A person read 34 pages per day of a book, takes total number of pages of book from user and find total days to complete this book.



#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int tot_page,comp_day;
cout<<"Enter total page of book ";
cin>>tot_page;
comp_day=tot_page/34;
cout<<comp_day<<" days to complete this book.";
getch();
}

Subscribe to this Blog via Email :