menu
Qammunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Write a complete program thatdeclares an integer variable,reads a value from the keyboard into that variable, andwrites to standard output the square of the variable's valu…
Ask a Question
Questions
Unanswered
Tags
Ask a Question
Write a complete program thatdeclares an integer variable,reads a value from the keyboard into that variable, andwrites to standard output the square of the variable's valu…
asked
Jul 9, 2019
738
views
3
votes
Write a complete program thatdeclares an integer variable,reads a value from the keyboard into that variable, andwrites to standard output the square of the variable's value.besides the number, nothing else should be written to standard output.
Mathematics
high-school
LacOniC
asked
by
LacOniC
8.3k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
#include
int main()
{
int num;
scanf("%d", &num);
printf("%d", num*num);
return 0;
}
Pqvst
answered
Jul 15, 2019
by
Pqvst
7.8k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
May 6, 2022
114k
views
Write a C# program named DoubleDecimalTest thatdeclares and displays two variables - a double and a decimal.Experiment by assigning the same constant value to each variable sothat the assignment to the
Sham Dhiman
asked
May 6, 2022
by
Sham Dhiman
7.6k
points
Computers & Tech
college
1
answer
5
votes
114k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
How do you can you solve this problem 37 + y = 87; y =
What is .725 as a fraction
How do you estimate of 4 5/8 X 1/3
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity.org