Computer Science, asked by sudhasingh1056, 7 months ago

Write a program to input two digit number and find its last digit and find it's cube using pow function ​

Answers

Answered by ommahavarkar23
0

Answer:

C Program to Find Last Digit Of a Number */

#include <stdio.h>

int main()

{

int Number, LastDigit;

printf("\n Please Enter any Number that you wish : ");

scanf("%d", & Number);

LastDigit = Number % 10;

printf(" \n The Last Digit of a Given Number %d = %d", Number, LastDigit);

return 0;

}

Explanation:

please Follow me

Answered by kashishrollno24
0

Answer:

Cube sum program of individual digit of number in c start

#include <stdio.h>

#include <conio.h>

int main()

{

int number;

printf("enter a number to find cube sum");

scanf("%d", &number);

int n2,cube,cubesu=0;

while(number!=0)

{

n2 = number%10;

cube = n2*n2*n2;

cubesu = cubesu + cube;

number = number/10;

}

printf("cube sum is %d\t", cubesu);

getch();

return 0 ;

// Cube sum program of individual digit of number in c start

}

Similar questions