in this example I deal with fictive currency namely: Gold, Silver and Copper coins. 1 Gold is 100 Silver 1 Silver is 100 Copper (thus 1 gold is 10000 copper) ---- #include <windows.h> #include <stdio.h> void denominate(int Copper) { DWORD myCopper = Copper % 100; DWORD mySilver = Copper/100 % 100; DWORD myGold = Copper/10000; printf("You have %d Gold, %d Silver and %d Copper!!",myGold,mySilver,myCopper); } void main() { denominate(12345); } ---- Should Output: You have 1 Gold, 23 Silver and 45 Copper!!
write a program to print A to Z on screen in c?
good morning
Yes.
write a program to print the series 1/12+1/22+.........+1/n2 ?
Write a c program to print the 100 to 1 nos
Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.
#include
include <stdio.h> int main (void) { puts ("print"); return 0; }
(ab)*b
123454321
sdfdg
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?