0% found this document useful (0 votes)
6 views1 page

C Tutorial Basic Questions

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

C Tutorial Basic Questions

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

C Tutorial: Basic Input and Output Questions

1. Write a program that prints "Hello, World!" to the console.

2. Write a program that takes an integer as input and prints the same integer.

3. Write a program to input two integers and print their sum.

4. Write a program that takes three floating-point numbers as input and prints their average.

5. Write a program that takes a character as input and prints it back to the user.

6. Write a program to take a user's name and age as input and print: "Hello <name>, you are <age>

years old."

7. Write a program that takes an integer as input and prints its square.

8. Write a program to input two integers and print both their sum and product.

9. Write a program to input a temperature in Celsius and print the equivalent temperature in

Fahrenheit.

You might also like