How to write using c programming language. To calculate the square value of any given number by the user. Print the given number and square value of the number in front of the given number with the system time.
Answers
Answer:
include<stdio.h>
include<stdio.h>int main()
include<stdio.h>int main(){
include<stdio.h>int main(){printf("Please Enter any integer Value : ");
include<stdio.h>int main(){printf("Please Enter any integer Value : ");scanf("%f", &number);
include<stdio.h>int main(){printf("Please Enter any integer Value : ");scanf("%f", &number);square = number * number;
include<stdio.h>int main(){printf("Please Enter any integer Value : ");scanf("%f", &number);square = number * number;printf("square of a given number %.2f is = %.2f", number, square);
include<stdio.h>int main(){printf("Please Enter any integer Value : ");scanf("%f", &number);square = number * number;printf("square of a given number %.2f is = %.2f", number, square);return 0;
hope this will help you
good night sweet dreams
#include<stdio.h>
#include<math.h>
int main()
{
int a,sq;
printf("enter the value of a:\t");
scanf("%d \n",&a);
sq = a *a;
printf("%d is the square root of %d",sq,a);
}