🔒 Closed C language po

Status
Not open for further replies.

zacha

Forum Veteran
1653360471374.png
1653360494111.png
 
Solution
C:
#include <stdio.h>
int main(void){
  int n, cube, i;
printf("Enter an integer: ");
scanf("%d",&n);

cube = 1;
i = 0;
while (i < 3)
{
    cube = cube * n;
    i++;
}

printf("%d\n", cube);  // Here your code !
    
}
C:
#include <stdio.h>
int main(void){
  int n, cube, i;
printf("Enter an integer: ");
scanf("%d",&n);

cube = 1;
i = 0;
while (i < 3)
{
    cube = cube * n;
    i++;
}

printf("%d\n", cube);  // Here your code !
    
}
 
Solution
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 251
    Views
  • 2
    Participants
Last reply from:
zacha

Trending Topics

Online now

Members online
1,094
Guests online
1,754
Total visitors
2,848

Forum statistics

Threads
2,286,534
Posts
29,038,466
Members
1,217,040
Latest member
DevilOil
Back
Top