Monday, September 16, 2019

Second assignment sheet 1st question

#include<stdio.h>
main()

{int a,b;
printf("enter a and b\n");
scanf("%d%d",&a,&b);
if(a<b)
{ printf("%d is less than %d\n",a,b);}
else if (a=b)
{printf("%d is equal to %d\n",a,b);}
else{ printf("%d is greater than %b\n",a,b);}
}    




No comments:

Implement stsStr Leetcode solution

  28.   Implement strStr() Easy Implement  strStr() . Given two strings  needle  and  haystack , return the index of the first occurrence of...