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
Pooja.N.L
ECE department
IRTT
<span class="category"><small style="font-size: 12.75px;"><a href="https://forums.spoken-tutorial.org/filter/C-and-Cpp/" style="background-color: rgb(162, 109, 200); color: rgb(255, 255, 255); padding: 3px 5px; margin: 0px 5px 0px 0px; border-radius: 3px;">C-and-Cpp</a></small></span> <span class="tutorial"><small style="font-size: 12.75px;"><a href="https://forums.spoken-tutorial.org/filter/C-and-Cpp/Functions/" style="background-color: rgb(66, 66, 66); color: rgb(255, 255, 255); padding: 3px 5px; margin: 0px 5px 0px 0px; border-radius: 3px; width: 100px; overflow: hidden;">Functions</a></small></span> <span class="minute_range"><small style="font-size: 12.75px;"><a href="https://forums.spoken-tutorial.org/filter/C-and-Cpp/Functions/03-04/" style="background-color: rgb(245, 245, 245); color: rgb(66, 66, 66); padding: 3px 5px; margin: 0px 5px 0px 0px; border-radius: 3px;">03</a></small></span>
C-and-Cpp Functions 03-04 min 40-50 sec
Answers:
Assignments are only for self-assessment. If you have any specific question related to this tutorial please post here.
Login to add comment