Square of numbers
Title
Question
#include<stdio.h> </stdio.h>
<stdio.h>int main() </stdio.h>
<stdio.h>{</stdio.h>
<stdio.h> float number, square;</stdio.h>
<stdio.h> printf("Please Enter any integer Value:); </stdio.h>
<stdio.h>scanf("%f", &number); square number number; </stdio.h>
<stdio.h>printf("square of a given number %.2f is =%.2f", number, square);</stdio.h>
<stdio.h> return 0; </stdio.h>
<stdio.h>} </stdio.h>
<stdio.h>
</stdio.h>
</stdio.h>
<stdio.h>
</stdio.h>
</stdio.h>
<stdio.h>By</stdio.h>
<stdio.h>Gokulapriya M</stdio.h>
Ece department irtt
<stdio.h>
</stdio.h>
</stdio.h>
C-and-Cpp Functions 04-05 min 50-60 sec
Answers:
A meaningful program can be written as follows:
#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 a integer value:");
scanf("%d", &number);
square=number*number;
printf("square of a given number %.2f is =%.2f", number, square);
return 0;
}
#includem<stdio.h>
int main()
{
float number,square;
printf("enter a integer vaue:");
scanf("%d",&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 the integer value");
scanf("%d",&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 the integer value");
scanf("%d",&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 the integer value");
scanf("%d",&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 the integer value");
scanf("%d",&number);
square=number*number;
printf("square of a given number%2f is=2f",number,square);
return 0;
}
Login to add comment