for (first=n; first>=10; first/=10);
Peterson Number:145 = 1! + 4! + 5!number=sum of (factorials of digits)
example of procedural programming are those programming language that have structure e.g basic,fortran,c++,c and pascal e.t.c
write, putchar, putc, fputc etc
The term "fprintf" is a command used in the computer programming language C++. The command "fprintf" in C++ is used to print formatted data to a stream.
i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?
Reverse the digits then check of the new number is the same as the original number.
puts ("Daimond");
putchar ('%'); puts ("%"); printf ("%%"); etc...
write a program to print A to Z on screen in c?
question clarity
Good luck. I don't think it is possible, since there is no such thing called upper case digits.
console.wrikerle("""");
With printf.Example:for (i=0; i
In the programming language C++, cin is used to input the variable and cout is used to print a certain message or result.
To find a trendy number in C, you typically define a trendy number as one that is a two-digit number whose digits sum to a specific value, often 10. You can use a loop to iterate through the numbers from 10 to 99, checking if the sum of their digits equals the target value. If it does, you can store or print that number. Here's a simple example: for (int i = 10; i < 100; i++) { int sum = (i / 10) + (i % 10); if (sum == 10) { printf("%d ", i); } }
No, I don't.
answer:32 programme to print factorial of a given number in c languages