Pages
News
Android
C
C ++
Java
Advanced Java
Cyber Security
HTML
CSS
Java Script
PHP
Tuesday, 30 June 2015
Program 3 : Write a program to convert days into months and days.
#include<stdio.h>
void main()
{
int a, b, c;
printf(“Enter the days / n”);
scanf(“ %d”, &a);
b = a / 30;
c = a % 30;
printf(“month is : % d and days : % d”, b, c);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment