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

Assignment - 6 C Language LIVE Community Classes MySirG

This document outlines 10 programming assignments involving basic numeric operations and manipulations in C language. The assignments include printing variable sizes, extracting digits from numbers, swapping variable values, modifying numbers by appending or truncating digits, currency conversion, and rotating digits of a three digit number.

Uploaded by

Mohit Prajapat
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)
103 views1 page

Assignment - 6 C Language LIVE Community Classes MySirG

This document outlines 10 programming assignments involving basic numeric operations and manipulations in C language. The assignments include printing variable sizes, extracting digits from numbers, swapping variable values, modifying numbers by appending or truncating digits, currency conversion, and rotating digits of a three digit number.

Uploaded by

Mohit Prajapat
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

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.

You might also like