C++ Saved Program: calm-dog

facebook share

Here's the online compiler accompanied with IDE at your service. This is a saved code by one of our users. Try it out or save your own from the IDE page and don't forget to leave a feedback. You can find that at the bottom of the page.


#include <studio.h>
#include <stdlib.h>
int main(void)
{
    int num1,num2;
    printf("introduzca numero del 1 al 5:");
    scanf("%d",&num1);
    printf("introduzca numero del 1 al 5:");
    scanf("%d",&num2);
    if(num1!=4&&num2!4){
    printf("ambos son primos.\n");
    }
	else 
	{
	    printf("los numeros, o uno de ellos, no son primos.\n");
	}
	system("PAUSE")
	return 0;
}
Execute

Output

Press the execute button or CTRL + enter to run code.

Inputs