Decimal to Octal

Write a program to receive an integer and find its octal equivalent.

#include
#include
void main(void)
{
int num;
printf("Enter the number:");
scanf("%d",&num);
printf("%o",num);
getch();
}
 

Comments

Popular posts from this blog

Tip of the Day # 13

Governor Generals of Pakistan

Tip of the Day# 12