C Program To Find Sum Of Cubic Roots Of Individual Digits Of A Number

  • Uploaded by: Saiyasodharan
  • 0
  • 0
  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View C Program To Find Sum Of Cubic Roots Of Individual Digits Of A Number as PDF for free.

More details

  • Words: 70
  • Pages: 1
SUM OF CUBIC ROOT OF THE INDIVIDUAL DIGITS OF A NUMBER Examples: 123 : 11/3 + 21/3 + 31/3 Program: #include<stdio.h> #include #include<math.h> void main() { long int no; float sum = 0; clrscr(); printf("Enter a Number : "); scanf("%ld", &no); while (no > 0) { sum = sum + pow(no % 10,(1/3)); no = no / 10; } printf("\nSum is %f\n", sum); getch(); } More useful programs @ http://www.gethugames.in/blog/

Related Documents


More Documents from ""