What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-03-22 08:50:25
integer to char c++
// for example you have such integer int i = 3; // and you want to convert it to a char so that char c = '3'; what you need to do is, by adding i to '0'. The reason why it works is because '0' actually means an integer value of 48. '1'..'9' means 49..57... Add solution -
C 2021-11-06 17:44:09
c program to check the number is armstrong or not
#include <stdio.h> int main() { int num, originalNum, remainder, result = 0; printf("Enter a three-digit integer: "); scanf("%d", &num); originalNum = num; while (originalNum != 0) { // remainder c... Add solution