Square of numbers
Title
Question
#include<stdio.h>
int main()
{
float number, square;
printf("Enter any integer Value:");
scanf("%f", &number);
square=number* number;
printf("square of a given number %.2f is = %.2f", number, square);
return 0;
}
By
Ranish. T
IT department
IRTT
C-and-Cpp Functions 03-04 min 30-40 sec
Answers:
Assignments are only for self-assessment. If you have any specific question related to this tutorial please post here.
#include<stdio.h>
int main()
{
float number, square;
printf("Enter any integer Value:");
scanf("%f", &number);
square=number* number;
printf("square of a given number %.2f is = %.2f", number, square);
return 0;
}
#include<stdio.h>
int main()
{
float number, square;
printf("Enter any integer Value:");
scanf("%f", &number);
square=number* number;
printf("square of a given number %.2f is = %.2f", number, square);
return 0;
}
//c program for square of numbers
#include<stdio.h>
int main()
{
float number, square;
printf("Enter any integer Value:");
scanf("%f", &number);
square=number* number;
printf("square of a given number %.2f is = %.2f", number, square);
return 0;
}
#include<stdio.h>
int main()
{
float number, square;
printf("Enter any integer Value:");
scanf("%f", &number);
square=number* number;
printf("square of a given number %.2f is = %.2f", number, square);
return 0;
}
#include<stdio.h>
int main()
{
float number, square;
printf("Enter any integer Value:");
scanf("%f", &number);
square=number* number;
printf("square of a given number %.2f is = %.2f", number, square);
return 0;
}
Login to add comment