Susri

sum 2

Oct 25th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int i,x,cube;
  5.     scanf("%d",&x);
  6.     for(i=1; i<=x; i++)
  7.     {
  8.  
  9.         cube=i*i*i;
  10.     }
  11.  
  12.         printf("Number is :%d and cube of the Number is :%d\n",i,cube);
  13.    
  14.  
  15.  
  16.  
  17.  
  18.  
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment