User Profile
Collapse
Profile Sidebar
Collapse
Gokul619
Last Activity: Jul 25 '16, 06:10 AM
Joined: Apr 13 '16
Location:
-
Try recoding the arrays with the index "j" and check again .. -
How to obtain a perfect value for the cube of a number (Whole/Decimal)
Hi friends ,
I have used the logic below to calculate the cube of a number (whole no. or decimal)
#include <stdio.h>
void main(){
int i=0,n;
float a,b;
printf("Enter the number\n");
scanf("%f",&a);
n=a*a;
do{
b=a*i;
i++;
}while(i<=n);
printf(" The answer is \n%f",b);...
No activity results to display
Show More
Leave a comment: