j

Tuesday, 3 November 2015

Write a program that take user per month income and show him into per year,per day, and per hour income



#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
long int pm,ph,pd;
long int py;
printf("Enter your monthly income ::");
scanf("%ld",&pm);
pd=pm/30;
ph=pd/12;
py=pm*12;
printf("Your per hour income is %ld\n",ph);
printf("Your per day income is %ld\n",pd);
printf("Your per year income is %ld",py);
getch();
}

Subscribe to this Blog via Email :