Assignment - 6 C Language LIVE Community Classes MySirG
Assignment - 6 C Language LIVE Community Classes MySirG
1. Write a program to print size of an int, a float, a char and a double type variable
2. Write a program to find last digit of a given number
3. Write a program to find first digit of a given three digit number
4. Write a program to find middle digit of a given three digit number
5. Write a program to swap values of two int variables
6. Write a program to swap values of two int variables without using third variable
7. Write a program to make the last digit of a number stored in a variable as zero.
(Example - if x=2345 then make it x=2340)
8. Write a program to input a number from the user and also input a digit. Append a
digit in the number and print the resulting number. (Example - number=234 and
digit=9 then the resulting number is 2349)
9. Assume price of 1 USD is INR 76.23. Write a program to take the amount in INR and
convert it into USD.
10. Write a program to take a three digit number from the user and rotate its digits by one
position towards the right.