Extract thousands of four digits, hundred, ten, bit

xiaoxiao2021-03-06  20

// bit.cpp: defines the entry point for the console application.//

/ * x -> Thousand Y -> Hundreds of Z -> Ten W -> Dividing * /

#include "stdafx.h" #include "stdio.h"

INT Main (int Argc, char * argv []) {INT i = 5687; INT X, Y, Z, W; X = I / 1000; Y = (ix * 1000) / 100; z = (ix * 1000- Y * 100) / 10; w = ix * 1000-y * 100-z * 10; Printf ("x IS:% D / N", X); Printf ("Y IS:% D / N", Y) PRINTF ("Z IS:% D / N", Z); Printf ("W IS:% D / N", W); Return 0;}

转载请注明原文地址:https://www.9cbs.com/read-40242.html

New Post(0)