Wednesday, October 21, 2020

if the given number is greater than 0 calculate its square and cube - c program

#include <stdio.h>

int main() 

{

    int n;

    printf("Enter a number:");

    scanf("%d", &n);

    if(n>0)

    {

        printf("Number = %d, Square = %d, Cube = %d", n, n*n, n*n*n);

    }

}

No comments:

Post a Comment

2019 wasn’t just a year—it was a whole era.From lectures to late nights, chaos to clarity… every frame built a story I’m still living ✨

Video Link The video contains snaps from 2019 throwback ones when i was doing my masters studies from university of surrey, guildford, londo...