Tag Archives: cube


Write a macro to find cube of a given number. 4m Jun 2010

Write a macro to find cube of a given number. 4m Code: #include<stdio.h> #define CUBE(N) (N * N * N ) void main() { int NUM; clrscr(); printf(” Enter number : “); scanf(“%d”,&NUM); printf(“\n Cube of number is : %d “,CUBE(NUM)); getch(); } Screen Shots:     (c) Write a program in C, using structures… Read More »