Tag Archives

Only ASCII values #include <stdio.h> int main() { int i; char ch; for(i=0;i<256;i++) { printf(“%c”,ch); ch=ch+1; } return 0;...

Write a C Program to Only ASCII values

Only ASCII values #include <stdio.h> int main() { int i; char ch; for(i=0;i<256;i++) { printf(“%c”,ch); ch=ch+1; } return 0;...

Program: #include <stdio.h> int main(){ int year; printf(“Enter a year :”); scanf(“%d”,&year); if(((year%400==0 )||(year%100!=0))&&(year%4==0)) printf(“%d is a leap year.\n”,year);...

Write a C program to check Leap year or Not

Program: #include <stdio.h> int main(){ int year; printf(“Enter a year :”); scanf(“%d”,&year); if(((year%400==0 )||(year%100!=0))&&(year%4==0)) printf(“%d is a leap year.\n”,year);...