generate functionFri, 05 May 2023

escriba un programa que pida 3 número y que escriba si los tres son iguales, si hay 2 iguales o si los tres son distintos

#include <stdio.h> int main(){ int a, b, c; printf("enter the first number: "); scanf("%d", &a); printf("enter the second number: "); scanf("%d", &b); printf("enter the third number: "); scanf("%d", &c); if (a == b && a == c) printf("the three values are equal"); else if (a == b || a == c || b == c) printf("two of the values are equal"); else printf("the three values are diferent"); return 0; }

Questions about programming?Chat with your personal AI assistant