Input two numbers and print the square value
Answers
Answered by
1
print("num_1 square", (n := int(input("num_1: "))) ** 2)
print("num_2 square", (n := int(input("num_2: "))) ** 2)
Answered by
3
Answer:
/* C Program to Calculate Square of a Number using Function */
#include <stdio.h>
int Calculate _ Square ( int Number );
int main()
{
int number, Square ;
printf ( "\n Please Enter any integer Value: ");
scanf ( "%d ", & number );
Square = Calcute_Square ( number );
printf(" \n Square of a given number %d =%d ",number, Square );
return 0;
}
int Calculate_Square ( int Number )
{
return Number * Number;
}
Similar questions