


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



#include <stdio.h> int main() { int num1,num2; printf("Enter two numbers:\n"); scanf("%d%d",&num1,&num2); if(num1>num2) printf("%d is a maximum number\n",num1); else printf("%d is a maximum number\n",num2); return 0;
#include <stdio.h> int main() { int a; printf("Enter a number: \n "); scanf("%d", &a); if (a > 0) printf("%d is positive.", a); else if (a < 0) printf("%d is negative.", a); else if (a == 0) printf("%d is zero. \n", a); return 0;