3. Write a code that takes two float numbers from the user and then print the sum of these 2 numebrs. (write comments) Answer:

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter4: Making Decisions
Section: Chapter Questions
Problem 3RQ
icon
Related questions
Question

please start from the 3rd question and 4th and 5th thank you <3

1. Explain the difference between scanf and printf
Answer:
What is the output of this code
int x = (4/2)*2-(5%3)+6;
printf("%d\n",x);
2. ? (Explain)
Answer:
3. Write a code that takes two float numbers from the user and then print the sum of
these 2 numebrs. (write comments)
Answer:
4. Is 33M and INT33 considered as valid variable names? (explain)
Answer:
5. Declare and initialize a float variable and a character variable.
Answer:
Transcribed Image Text:1. Explain the difference between scanf and printf Answer: What is the output of this code int x = (4/2)*2-(5%3)+6; printf("%d\n",x); 2. ? (Explain) Answer: 3. Write a code that takes two float numbers from the user and then print the sum of these 2 numebrs. (write comments) Answer: 4. Is 33M and INT33 considered as valid variable names? (explain) Answer: 5. Declare and initialize a float variable and a character variable. Answer:
Expert Solution
steps

Step by step

Solved in 5 steps with 1 images

Blurred answer
Knowledge Booster
Literals
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning