Friday 24 June 2016

C programme to find the sum of the first five number's cube



C programme find the sum of the first five number's cube

#include<conio.h> 
#include<stdio.h> 
int main() 
{  

int i=1,cube=0;  
while(i<=5)  
{   
cube=cube+(i*i*i);   
i++;  
}  
printf("\nThe answer is: %d",cube); 

}

0 comments:

Post a Comment

Have A Wonderful Day !

--------------------------------------------------------------------

Word Of The Day | Learn And Use A New Word Everyday!

--------------------------------------------------------------------

"Insidious"

Working or spreading in a hidden and usually injurious way

"glaucoma is an insidious disease"

Copyright © 2016 Engineers Burger - All Rights Reserved. Digital Craftmanship - Nikhil Jha and Jay Akbari.
MyBloggerLab.com