Posts by Matheus • 11 points
1 post
-
0
votes2
answers414
viewsQ: What is the code to print only the first number of a value? ex: only the 8 of 8372883
#include <stdio.h> int main(){ int a, b, c, d; printf("Insira um numero de quatro digitos: "); scanf("%i",&a); b=a%10; c=a%100; d=a%1000; …