Question

Write a C program for finding the square of a given number.

13 Jan 2018
Answer :
Word Count : 138

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
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU CIT 1 2017 2018 - Write a C program for finding the square of a given number. | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→