Question
Write a C program for finding the square of a given number.
Answer :
Word Count : 138
_________ ___ __________ ___ ______ _________ ________ _____ _______ __________.
___ _____ _______ _________ ______ _____ __________ ____ __________ _________ ________ ________.
_________ ______ ______ ___ _________ _____ ________.
__________ ________ _____ ____ ______ _________ ________ ___.
_________ ________ _______ ________ _______ _________ ___ _________ ___.
__________ __________ ______ __________ ______ ___ _______ _____ _______ ________.
______ ___ ________ ____ _____ _____ _____ ___ _________ ____ __________.
__________ _____ _____ ______ _____ ___.
____ ________ ______ ___ ______.
_______ ________ ___ _______ ________.
Skip in 10
Here's a simple C program to find the square of a given number:
#include <stdio.h> int main() { float num, square; // Prompt the user to enter a number printf("Enter a number: "); scanf("%f", &num); // Calculate the square of the number square = num * num; // Display the result printf("The square of ___ _____ _______ _________ ______ _____ __________ ____ __________ _________ ________ ________.
_________ ______ ______ ___ _________ _____ ________.
__________ ________ _____ ____ ______ _________ ________ ___.
_________ ________ _______ ________ _______ _________ ___ _________ ___.
__________ __________ ______ __________ ______ ___ _______ _____ _______ ________.
______ ___ ________ ____ _____ _____ _____ ___ _________ ____ __________.
__________ _____ _____ ______ _____ ___.
____ ________ ______ ___ ______.
_______ ________ ___ _______ ________.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.