first code
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Mert Gör 2025-04-12 22:12:51 +03:00
parent 79f83aa190
commit 0bb57da7ec
No known key found for this signature in database
GPG key ID: 03E547D043AB6C8F

View file

@ -1,11 +1,15 @@
#include <stdio.h> #include <stdio.h>
int main() { int main()
unsigned int a; // Change 'int' to 'unsigned int' {
printf("Enter your number: "); int a, b;
scanf("%x", &a); // Now 'a' matches '%x' expected type
printf("a = %u\n", a); // Use '%u' to correctly print an unsigned int
return 0; printf("Enter a number : ");
scanf("%x", &a);
printf("a = %d\n", a);
return 0;
} }